diff options
author | Viktor Ferenczi <viktor@ferenczi.eu> | 2018-07-30 23:55:15 +0200 |
---|---|---|
committer | Viktor Ferenczi <viktor@ferenczi.eu> | 2018-07-30 23:55:15 +0200 |
commit | 5590ec67db4b0eddaf2489862b7e659c3ee4ce02 (patch) | |
tree | 2c89a3ed9a243bbc0d94bea353c0c641ae24b52c | |
parent | 32a2c46d028f3ce39d4acd38ea2deadccef4f3e4 (diff) |
Fixed short circuiting on non-Windows platforms
-rw-r--r-- | platform_methods.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform_methods.py b/platform_methods.py index 8d51ebd84d..4300216427 100644 --- a/platform_methods.py +++ b/platform_methods.py @@ -15,10 +15,6 @@ else: def run_in_subprocess(builder_function): - # Run in subprocess only while running the build on Windows - if sys.platform not in ('win32', 'cygwin'): - return builder_function - @functools.wraps(builder_function) def wrapper(target, source, env): @@ -26,6 +22,10 @@ def run_in_subprocess(builder_function): target = [node.srcnode().abspath for node in target] source = [node.srcnode().abspath for node in source] + # Short circuit on non-Windows platforms, no need to run in subprocess + if sys.platform not in ('win32', 'cygwin'): + return builder_function(target, source, env) + # Identify module module_name = builder_function.__module__ function_name = builder_function.__name__ |