From e8a7a8f41e386426c00d27873690e29c2dd3b382 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 13 Sep 2021 10:40:54 +0800 Subject: [PATCH] compiler: work around idiotic windoze behavior that causes conda ld.lld not to be found --- artiq/compiler/targets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/compiler/targets.py b/artiq/compiler/targets.py index 0c6ee3ee4..38e15b6cc 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -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: {}".