| ... | @@ -448,7 +448,9 @@ int ZigClang_main(int argc_, const char **argv_) { | ... | @@ -448,7 +448,9 @@ int ZigClang_main(int argc_, const char **argv_) { |
| 448 | ApplyQAOverride(argv, OverrideStr, SavedStrings); | 448 | ApplyQAOverride(argv, OverrideStr, SavedStrings); |
| 449 | } | 449 | } |
| 450 | | 450 | |
| 451 | std::string Path = GetExecutablePath(argv[0], CanonicalPrefixes); | 451 | // Pass local param `argv_[0]` as fallback. |
| | 452 | // See https://github.com/ziglang/zig/pull/3292 . |
| | 453 | std::string Path = GetExecutablePath(argv_[0], CanonicalPrefixes); |
| 452 | | 454 | |
| 453 | // Whether the cc1 tool should be called inside the current process, or if we | 455 | // Whether the cc1 tool should be called inside the current process, or if we |
| 454 | // should spawn a new clang subprocess (old behavior). | 456 | // should spawn a new clang subprocess (old behavior). |