From 850bfc23a766878db85f745c769f7bd5d5dfee98 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 24 Jan 2005 15:16:00 +0000 Subject: [PATCH] Really fix include paths with spaces. * util/print.jam: Do not quote the argument to the 'echo' command on windows. It's special, and does not need quotes. Adding them will cause the quotes to always appear in the output, which would be different behaviour from Unix. * tools/common.jam (response-file): Add quotes here. [SVN r26836] --- v2/tools/common.jam | 2 +- v2/util/print.jam | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/tools/common.jam b/v2/tools/common.jam index 24ce89c82..5fe5d2b8e 100644 --- a/v2/tools/common.jam +++ b/v2/tools/common.jam @@ -498,7 +498,7 @@ rule response-file ( targets + : sources * : the-response-file : properties * ) print.text [ on $(targets[1]) - return -D$(DEFINES) -I"$(INCLUDES)" + return -D$(DEFINES) -I\"$(INCLUDES)\" ] ; } diff --git a/v2/util/print.jam b/v2/util/print.jam index f8b0c3a96..0ef4ca3c0 100644 --- a/v2/util/print.jam +++ b/v2/util/print.jam @@ -428,7 +428,7 @@ if [ modules.peek : NT ] if $(string) || $(string) != "" { local escaped = [ regex.escape $(string) : "&|()<>^" : "^" ] ; - return "echo \"$(escaped)\"" ; + return "echo $(escaped)" ; } else {