Skip to content

Commit 0f58a96

Browse files
authored
pass through QEMU_LD_PREFIX by default (#1849)
For systems using qemu-user-static to run foreign binaries outside of containers
1 parent 88019c8 commit 0f58a96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cwltool/job.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,9 @@ def _required_env(self) -> Dict[str, str]:
582582
env["HOME"] = self.outdir
583583
env["TMPDIR"] = self.tmpdir
584584
env["PATH"] = os.environ["PATH"]
585-
if "SYSTEMROOT" in os.environ:
586-
env["SYSTEMROOT"] = os.environ["SYSTEMROOT"]
585+
for extra in ("SYSTEMROOT", "QEMU_LD_PREFIX"):
586+
if extra in os.environ:
587+
env[extra] = os.environ[extra]
587588
return env
588589

589590

0 commit comments

Comments
 (0)