aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-01 18:05:06 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-01 18:06:04 -0400
commit4848b28ec84edb719e780f164eac366ab2e83f22 (patch)
tree4df6be82d03001990620b5048496a25b1646af6e /tools
parenteefb0a36c060fab2d9d2bf2a258f0fd5e8126fe8 (diff)
downloadzig-4848b28ec84edb719e780f164eac366ab2e83f22.tar.gz
zig-4848b28ec84edb719e780f164eac366ab2e83f22.zip
zig cc: detect -mcpu, -march, -mtune
However these are all treated like zig's -mcpu parameter. See #4784
Diffstat (limited to 'tools')
-rw-r--r--tools/update_clang_options.zig16
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/update_clang_options.zig b/tools/update_clang_options.zig
index 24e8223520..b85d708470 100644
--- a/tools/update_clang_options.zig
+++ b/tools/update_clang_options.zig
@@ -176,11 +176,23 @@ const known_options = [_]KnownOpt{
},
.{
.name = "L",
- .ident = "linker_input_l",
+ .ident = "lib_dir",
},
.{
.name = "library-directory",
- .ident = "linker_input_l",
+ .ident = "lib_dir",
+ },
+ .{
+ .name = "mcpu",
+ .ident = "mcpu",
+ },
+ .{
+ .name = "march",
+ .ident = "mcpu",
+ },
+ .{
+ .name = "mtune",
+ .ident = "mcpu",
},
};