Fixed short circuiting on non-Windows platforms
This commit is contained in:
parent
32a2c46d02
commit
5590ec67db
|
@ -15,10 +15,6 @@ else:
|
||||||
|
|
||||||
def run_in_subprocess(builder_function):
|
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)
|
@functools.wraps(builder_function)
|
||||||
def wrapper(target, source, env):
|
def wrapper(target, source, env):
|
||||||
|
|
||||||
|
@ -26,6 +22,10 @@ def run_in_subprocess(builder_function):
|
||||||
target = [node.srcnode().abspath for node in target]
|
target = [node.srcnode().abspath for node in target]
|
||||||
source = [node.srcnode().abspath for node in source]
|
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
|
# Identify module
|
||||||
module_name = builder_function.__module__
|
module_name = builder_function.__module__
|
||||||
function_name = builder_function.__name__
|
function_name = builder_function.__name__
|
||||||
|
|
Loading…
Reference in New Issue