mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
unconditionally pass --no-default-config to clang
As of Clang 16.x, it will by default read extra flags from /etc/clang. I'm sure the person who implemented this means well, but they have a lot to learn about abstractions and where the appropriate boundaries between them are. The road to hell is paved with good intentions. Fortunately it can be disabled.
This commit is contained in:
parent
09cee1d5e3
commit
06df842e4d
@ -4242,6 +4242,13 @@ pub fn addCCArgs(
|
||||
) !void {
|
||||
const target = comp.getTarget();
|
||||
|
||||
// As of Clang 16.x, it will by default read extra flags from /etc/clang.
|
||||
// I'm sure the person who implemented this means well, but they have a lot
|
||||
// to learn about abstractions and where the appropriate boundaries between
|
||||
// them are. The road to hell is paved with good intentions. Fortunately it
|
||||
// can be disabled.
|
||||
try argv.append("--no-default-config");
|
||||
|
||||
if (ext == .cpp) {
|
||||
try argv.append("-nostdinc++");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user