compiler: work around idiotic windoze behavior that causes conda ld.lld not to be found

This commit is contained in:
Sebastien Bourdeauducq 2021-09-13 10:40:54 +08:00
parent 4834966798
commit e8a7a8f41e

View File

@ -28,8 +28,10 @@ class RunTool:
for argument in self._pattern:
cmdline.append(argument.format(**self._tempnames))
# https://bugs.python.org/issue17023
windows = os.name == "nt"
process = subprocess.Popen(cmdline, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
universal_newlines=True)
universal_newlines=True, shell=windows)
stdout, stderr = process.communicate()
if process.returncode != 0:
raise Exception("{} invocation failed: {}".