From d4258b2b32d6254b878eca9200271fa3f4ee7174 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sat, 27 Mar 2021 09:56:55 -0700 Subject: [PATCH] build: (merges !584) Exit configuration if path whitespace detected --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index 4a8cccd88..4d0f3660d 100644 --- a/wscript +++ b/wscript @@ -364,6 +364,10 @@ def print_config(env, phase='configure'): print("%-30s: %s%s%s" % (caption, Logs.colors(color), status, Logs.colors('NORMAL'))) def configure(conf): + # Waf does not work correctly if the absolute path contains whitespaces + if (re.search(r"\s", os.getcwd ())): + conf.fatal('Waf does not support whitespace in the path to current working directory: %s' % os.getcwd()) + conf.load('relocation', tooldir=['waf-tools']) # attach some extra methods