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.
This commit is contained in:
Andrew Kelley 2021-02-07 15:08:27 -07:00
parent e197a03124
commit 1adac0a55b

View File

@ -2348,9 +2348,7 @@ pub fn addCCArgs(
else => {},
}
if (comp.bin_file.options.strip) {
try argv.append("-s");
} else {
if (!comp.bin_file.options.strip) {
try argv.append("-g");
switch (comp.bin_file.options.object_format) {
.coff, .pe => try argv.append("-gcodeview"),