Commit 1adac0a55b

Andrew Kelley <andrew@ziglang.org>
2021-02-07 23:08:27
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 parent e197a03
Changed files (1)
src/Compilation.zig
@@ -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"),