aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2020-03-28 00:35:54 -0700
committerRyan Liptak <squeek502@hotmail.com>2020-03-28 00:35:54 -0700
commit874b4618ca0a8fcde347e9cbca8e3a0de82d9b4b (patch)
treed90e1a1cd90a9ce1abc6910f16c9790ca81a079b /tools
parentb0b29b8a2fe57cb501248c1022a24092f4f56f82 (diff)
downloadzig-874b4618ca0a8fcde347e9cbca8e3a0de82d9b4b.tar.gz
zig-874b4618ca0a8fcde347e9cbca8e3a0de82d9b4b.zip
zig cc: Add support for -z
This is only the first step; it makes zig cc recognize -z and append it to the linker args, but the linker arg parsing doesn't support -z yet so it will just give the warning 'unsupported linker arg: -z'
Diffstat (limited to 'tools')
-rw-r--r--tools/update_clang_options.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/update_clang_options.zig b/tools/update_clang_options.zig
index f8d1987206..b673fa0503 100644
--- a/tools/update_clang_options.zig
+++ b/tools/update_clang_options.zig
@@ -91,6 +91,10 @@ const known_options = [_]KnownOpt{
.ident = "for_linker",
},
.{
+ .name = "z",
+ .ident = "linker_input_z",
+ },
+ .{
.name = "E",
.ident = "preprocess",
},