From a4bc299d041a11bd9aa1abe8a8e97afcd27b3f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Mon, 11 Jun 2012 23:36:26 +0000 Subject: [PATCH] Made Boost Build ignore any received empty command-line arguments that it previously interpreted as targets. This was causing Boost Build test failures (rule path.make-UNIX called with an empty parameter) on many non-Windows platforms where empty parameters are not automatically stripped by the OS or the used Python process call implementation. [SVN r78902] --- v2/build/build-request.jam | 2 +- v2/build/build_request.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/build/build-request.jam b/v2/build/build-request.jam index 8a1f7b0eb..943c224ae 100644 --- a/v2/build/build-request.jam +++ b/v2/build/build-request.jam @@ -153,7 +153,7 @@ rule from-command-line ( command-line * ) properties += [ convert-command-line-element $(e) : $(feature-space) ] ; } - else + else if $(e) { targets += $(e) ; } diff --git a/v2/build/build_request.py b/v2/build/build_request.py index cc9f2400a..e149ab894 100644 --- a/v2/build/build_request.py +++ b/v2/build/build_request.py @@ -114,7 +114,7 @@ def from_command_line(command_line): # consists of implicit feature values. if e.find("=") != -1 or looks_like_implicit_value(e.split("/")[0]): properties += convert_command_line_element(e) - else: + else if e: targets.append(e) return [targets, properties]