mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
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:
parent
e197a03124
commit
1adac0a55b
@ -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"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user