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

pull/1745/head
Sebastien Bourdeauducq 2021-09-13 10:40:54 +08:00
parent 4834966798
commit e8a7a8f41e
1 changed files with 3 additions and 1 deletions

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: {}".