From 1adac0a55bafbba864228ac38c4684612e84f522 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 7 Feb 2021 15:08:27 -0700 Subject: [PATCH] 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. --- src/Compilation.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Compilation.zig b/src/Compilation.zig index 268c259c02..c7bb260aa7 100644 --- a/src/Compilation.zig +++ b/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"),