From 3337e9da1ae6989c1815b02ad639cf9381a08db0 Mon Sep 17 00:00:00 2001 From: masuidrive Date: Wed, 10 Feb 2010 02:21:54 -0800 Subject: [PATCH] Build system: support spaces in directory names --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index b7cf73781d..5800ff76db 100644 --- a/wscript +++ b/wscript @@ -91,7 +91,7 @@ def conf_subproject (conf, subdir, command=None): copytree(src, default_tgt, True) if command: - if os.system("cd %s && %s" % (default_tgt, command)) != 0: + if os.system("cd \"%s\" && %s" % (default_tgt, command)) != 0: conf.fatal("Configuring %s failed." % (subdir)) debug_tgt = join(conf.blddir, "debug", subdir) @@ -191,7 +191,7 @@ def build_udns(bld): static_lib = bld.env["staticlib_PATTERN"] % "udns" - rule = 'cd %s && make' + rule = 'cd "%s" && make' default = bld.new_task_gen( target= join("deps/udns", static_lib), @@ -234,7 +234,7 @@ def v8_cmd(bld, variant): else: mode = "debug" - cmd_R = 'python %s -C %s -Y %s visibility=default mode=%s %s library=static snapshot=on' + cmd_R = 'python "%s" -C "%s" -Y "%s" visibility=default mode=%s %s library=static snapshot=on' cmd = cmd_R % ( scons , bld.srcnode.abspath(bld.env_of_name(variant))