| ... | ... | @@ -4242,6 +4242,13 @@ pub fn addCCArgs( |
| 4242 | 4242 | ) !void { |
| 4243 | 4243 | const target = comp.getTarget(); |
| 4244 | 4244 | |
| 4245 | // As of Clang 16.x, it will by default read extra flags from /etc/clang. |
| 4246 | // I'm sure the person who implemented this means well, but they have a lot |
| 4247 | // to learn about abstractions and where the appropriate boundaries between |
| 4248 | // them are. The road to hell is paved with good intentions. Fortunately it |
| 4249 | // can be disabled. |
| 4250 | try argv.append("--no-default-config"); |
| 4251 | |
| 4245 | 4252 | if (ext == .cpp) { |
| 4246 | 4253 | try argv.append("-nostdinc++"); |
| 4247 | 4254 | } |