authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2020-03-21 16:38:58-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-21 16:53:59-04:00
log28ad78cb7f4a567ce6a595b8ff466e90b311f3e4
treeb09e3a4728bcff2338d18b6fcd5f373c7e6cecee
parent4d9b458f8f722603dd0c303bddeca553948025fb
signature Commit is signed but in an unrecognized format.

rename "passthrough" → "driver_punt"

- punt when `-E` is supplied - punt when `-S` is supplied

5 files changed, 31 insertions(+), 9 deletions(-)

src-self-hosted/clang_options_data.zig+19-5
......@@ -4,7 +4,14 @@ usingnamespace @import("clang_options.zig");
44pub const data = blk: { @setEvalBranchQuota(6000); break :blk &[_]CliArg{
55flagpd1("C"),
66flagpd1("CC"),
7flagpd1("E"),
7.{
8 .name = "E",
9 .syntax = .flag,
10 .zig_equivalent = .driver_punt,
11 .pd1 = true,
12 .pd2 = false,
13 .psl = false,
14},
815flagpd1("EB"),
916flagpd1("EL"),
1017flagpd1("Eonly"),
......@@ -36,7 +43,14 @@ flagpd1("Q"),
3643flagpd1("Qn"),
3744flagpd1("Qunused-arguments"),
3845flagpd1("Qy"),
39flagpd1("S"),
46.{
47 .name = "S",
48 .syntax = .flag,
49 .zig_equivalent = .driver_punt,
50 .pd1 = true,
51 .pd2 = false,
52 .psl = false,
53},
4054.{
4155 .name = "<unknown>",
4256 .syntax = .flag,
......@@ -119,7 +133,7 @@ flagpd1("###"),
119133.{
120134 .name = "E",
121135 .syntax = .flag,
122 .zig_equivalent = .other,
136 .zig_equivalent = .driver_punt,
123137 .pd1 = true,
124138 .pd2 = false,
125139 .psl = true,
......@@ -1127,7 +1141,7 @@ flagpd1("###"),
11271141.{
11281142 .name = "help",
11291143 .syntax = .flag,
1130 .zig_equivalent = .passthrough,
1144 .zig_equivalent = .driver_punt,
11311145 .pd1 = true,
11321146 .pd2 = false,
11331147 .psl = true,
......@@ -3131,7 +3145,7 @@ sepd1("header-include-file"),
31313145.{
31323146 .name = "help",
31333147 .syntax = .flag,
3134 .zig_equivalent = .passthrough,
3148 .zig_equivalent = .driver_punt,
31353149 .pd1 = true,
31363150 .pd2 = true,
31373151 .psl = false,
src-self-hosted/stage2.zig+1-1
......@@ -1240,7 +1240,7 @@ pub const ClangArgIterator = extern struct {
12401240 positional,
12411241 l,
12421242 ignore,
1243 passthrough,
1243 driver_punt,
12441244 pic,
12451245 no_pic,
12461246 nostdlib,
src/main.cpp+1-1
......@@ -630,7 +630,7 @@ static int main0(int argc, char **argv) {
630630 break;
631631 case Stage2ClangArgIgnore:
632632 break;
633 case Stage2ClangArgPassthrough:
633 case Stage2ClangArgDriverPunt:
634634 // Never mind what we're doing, just pass the args directly. For example --help.
635635 return ZigClang_main(argc, argv);
636636 case Stage2ClangArgPIC:
src/stage2.h+1-1
......@@ -326,7 +326,7 @@ enum Stage2ClangArg {
326326 Stage2ClangArgPositional,
327327 Stage2ClangArgL,
328328 Stage2ClangArgIgnore,
329 Stage2ClangArgPassthrough,
329 Stage2ClangArgDriverPunt,
330330 Stage2ClangArgPIC,
331331 Stage2ClangArgNoPIC,
332332 Stage2ClangArgNoStdLib,
tools/update_clang_options.zig+9-1
......@@ -44,7 +44,7 @@ const known_options = [_]KnownOpt{
4444 },
4545 .{
4646 .name = "help",
47 .ident = "passthrough",
47 .ident = "driver_punt",
4848 },
4949 .{
5050 .name = "fPIC",
......@@ -74,6 +74,14 @@ const known_options = [_]KnownOpt{
7474 .name = "Wl,",
7575 .ident = "wl",
7676 },
77 .{
78 .name = "E",
79 .ident = "driver_punt",
80 },
81 .{
82 .name = "S",
83 .ident = "driver_punt",
84 },
7785};
7886
7987const blacklisted_options = [_][]const u8{};