#!/usr/bin/env python3
# The C compiler and linker for the courier's build: Zig 0.17.1's clang, for x86_64 Linux with glibc 2.31.
# It drops cargo's --target= flags and runs: $ZIG cc -target x86_64-linux-gnu.2.31 <the rest>.
import os, sys
zig = os.environ["ZIG"]
args = [a for a in sys.argv[1:] if not a.startswith("--target=")]
os.execv(zig, [zig, "cc", "-target", "x86_64-linux-gnu.2.31", *args])
