diff options
| author | cod1r <jasonho353@gmail.com> | 2022-09-18 09:47:24 -0500 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-10-13 13:12:17 +0200 |
| commit | 6af0eeb58d1d220d407ce4c463eaeb25b35f2761 (patch) | |
| tree | ccf73504ea6c7aa29c89938df36742c279a00b9a /tools | |
| parent | d987bf859e6d8511abb49b258c4d764bd32acc8e (diff) | |
| download | zig-6af0eeb58d1d220d407ce4c463eaeb25b35f2761.tar.gz zig-6af0eeb58d1d220d407ce4c463eaeb25b35f2761.zip | |
adding `static` and `dynamic` ZigEquivalent enums so that we can branch to set `link_mode` properly when we iterate over the clang arguments. also replaced `dynamic` flag in clang_options_data.zig with proper definition similarly to `static`.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/update_clang_options.zig | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/update_clang_options.zig b/tools/update_clang_options.zig index 92e0757ac7..4f76453967 100644 --- a/tools/update_clang_options.zig +++ b/tools/update_clang_options.zig @@ -492,6 +492,14 @@ const known_options = [_]KnownOpt{ .name = "compress-debug-sections=", .ident = "compress_debug_sections", }, + .{ + .name = "dynamic", + .ident = "dynamic", + }, + .{ + .name = "static", + .ident = "static", + }, }; const blacklisted_options = [_][]const u8{}; @@ -798,7 +806,7 @@ fn objSyntax(obj: *json.ObjectMap) ?Syntax { } else if (std.mem.eql(u8, superclass, "CLRemainingArgsJoined")) { return .remaining_args_joined; } else if (std.mem.eql(u8, superclass, "MultiArg")) { - return .{ .multi_arg = num_args }; + return Syntax{ .multi_arg = num_args }; } } const name = obj.get("Name").?.String; |
