From 17beafee4841dab582d0c92f9523674a2fdb8cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Abecasis?= Date: Fri, 5 May 2006 10:22:18 +0000 Subject: [PATCH] handle command-line arguments as bjam does [SVN r33935] --- v2/build/build-request.jam | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/v2/build/build-request.jam b/v2/build/build-request.jam index 3fed9469f..82d39b022 100644 --- a/v2/build/build-request.jam +++ b/v2/build/build-request.jam @@ -125,9 +125,14 @@ rule from-command-line ( command-line * ) local properties ; command-line = $(command-line[2-]) ; + local skip-next = ; for local e in $(command-line) { - if ! [ MATCH "^(-).*" : $(e) ] + if $(skip-next) + { + skip-next = ; + } + else if ! [ MATCH "^(-).*" : $(e) ] { # Build request spec either has "=" in it, or completely # consists of implicit feature values. @@ -142,6 +147,10 @@ rule from-command-line ( command-line * ) targets += $(e) ; } } + else if [ MATCH "^(-[-ldjfsto])$" : $(e) ] + { + skip-next = true ; + } } return [ new vector [ new vector $(targets) ] [ new vector $(properties) ] ] ; }