mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
clang driver: fix lost argv[0]
This commit is contained in:
parent
6426519e32
commit
1dc7764f2d
@ -448,7 +448,9 @@ int ZigClang_main(int argc_, const char **argv_) {
|
||||
ApplyQAOverride(argv, OverrideStr, SavedStrings);
|
||||
}
|
||||
|
||||
std::string Path = GetExecutablePath(argv[0], CanonicalPrefixes);
|
||||
// Pass local param `argv_[0]` as fallback.
|
||||
// See https://github.com/ziglang/zig/pull/3292 .
|
||||
std::string Path = GetExecutablePath(argv_[0], CanonicalPrefixes);
|
||||
|
||||
// Whether the cc1 tool should be called inside the current process, or if we
|
||||
// should spawn a new clang subprocess (old behavior).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user