authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-02-07 15:08:27-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-02-07 15:08:48-07:00
log1adac0a55bafbba864228ac38c4684612e84f522
treec0e31c78ac65713a8e4919007ebfb841f45b40de
parente197a03124527035f1a92381eb6ef46d6f6d2c39

never pass -s to clang

We only use clang to produce object files; the idea of stripping is not relevant here. Fixes regression in previous commit.

1 files changed, 1 insertions(+), 3 deletions(-)

src/Compilation.zig+1-3
......@@ -2348,9 +2348,7 @@ pub fn addCCArgs(
23482348 else => {},
23492349 }
23502350
2351 if (comp.bin_file.options.strip) {
2352 try argv.append("-s");
2353 } else {
2351 if (!comp.bin_file.options.strip) {
23542352 try argv.append("-g");
23552353 switch (comp.bin_file.options.object_format) {
23562354 .coff, .pe => try argv.append("-gcodeview"),