Skip to content

Commit 40a29b0

Browse files
committed
Modify sandbox to set CC and CXX as environment variables for Zig cross-compilation and unset them afterward.
1 parent e68d85d commit 40a29b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/sandbox.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ def main() -> int:
5050
target = "s390x-linux-gnu"
5151
additional_arguments = [
5252
f"--volume={os.getcwd()}/bin/zig-0.15.1:/mnt",
53-
f"--build-arg=CC=/mnt/zig-0.15.1/zig cc -target {target}",
54-
f"--build-arg=CXX=/mnt/zig-0.15.1/zig c++ -target {target}",
53+
f"--env=CC=/mnt/zig-0.15.1/zig cc -target {target}",
54+
f"--env=CXX=/mnt/zig-0.15.1/zig c++ -target {target}",
55+
f"--unsetenv=CC",
56+
f"--unsetenv=CXX",
5557
tmpdir,
5658
]
5759
command = []

0 commit comments

Comments
 (0)