aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-02-07 14:51:27 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-02-07 14:51:27 -0700
commite197a03124527035f1a92381eb6ef46d6f6d2c39 (patch)
treea3ad9b5db9a91389975bf0d755f40e807ad86d34 /src/main.zig
parent905c85be968e6823305887474d2a821dac82f16c (diff)
downloadzig-e197a03124527035f1a92381eb6ef46d6f6d2c39.tar.gz
zig-e197a03124527035f1a92381eb6ef46d6f6d2c39.zip
zig cc: recognize the `-s` flag to be "strip"
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 14f63d9911..c31252a96a 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1186,6 +1186,7 @@ fn buildOutputType(
.framework_dir => try framework_dirs.append(it.only_arg),
.framework => try frameworks.append(it.only_arg),
.nostdlibinc => want_native_include_dirs = false,
+ .strip => strip = true,
}
}
// Parse linker args.
@@ -3047,6 +3048,7 @@ pub const ClangArgIterator = struct {
nostdlibinc,
red_zone,
no_red_zone,
+ strip,
};
const Args = struct {