aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-02-17 00:58:30 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-02-17 00:58:30 -0500
commit44c14749a1063e5525b3249cddca6435d0654df4 (patch)
tree3c53668e301d9e8359660f90e62e990ebfe47177 /src/compiler.cpp
parenta5d47be5adc7c493ff7e87fc47241a84e268a3f0 (diff)
downloadzig-44c14749a1063e5525b3249cddca6435d0654df4.tar.gz
zig-44c14749a1063e5525b3249cddca6435d0654df4.zip
expand argv[0] when spawning system C compiler
Some C compilers, such as Clang, are known to rely on argv[0] to find the path to their own executable, without even bothering to resolve PATH. This results in the message: error: unable to execute command: Executable "" doesn't exist! So we tell ChildProcess to expand argv[0] to the absolute path to give them a helping hand.
Diffstat (limited to 'src/compiler.cpp')
0 files changed, 0 insertions, 0 deletions