mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
rename "passthrough" → "driver_punt"
- punt when `-E` is supplied - punt when `-S` is supplied
This commit is contained in:
parent
4d9b458f8f
commit
28ad78cb7f
5 changed files with 31 additions and 9 deletions
|
|
@ -4,7 +4,14 @@ usingnamespace @import("clang_options.zig");
|
||||||
pub const data = blk: { @setEvalBranchQuota(6000); break :blk &[_]CliArg{
|
pub const data = blk: { @setEvalBranchQuota(6000); break :blk &[_]CliArg{
|
||||||
flagpd1("C"),
|
flagpd1("C"),
|
||||||
flagpd1("CC"),
|
flagpd1("CC"),
|
||||||
flagpd1("E"),
|
.{
|
||||||
|
.name = "E",
|
||||||
|
.syntax = .flag,
|
||||||
|
.zig_equivalent = .driver_punt,
|
||||||
|
.pd1 = true,
|
||||||
|
.pd2 = false,
|
||||||
|
.psl = false,
|
||||||
|
},
|
||||||
flagpd1("EB"),
|
flagpd1("EB"),
|
||||||
flagpd1("EL"),
|
flagpd1("EL"),
|
||||||
flagpd1("Eonly"),
|
flagpd1("Eonly"),
|
||||||
|
|
@ -36,7 +43,14 @@ flagpd1("Q"),
|
||||||
flagpd1("Qn"),
|
flagpd1("Qn"),
|
||||||
flagpd1("Qunused-arguments"),
|
flagpd1("Qunused-arguments"),
|
||||||
flagpd1("Qy"),
|
flagpd1("Qy"),
|
||||||
flagpd1("S"),
|
.{
|
||||||
|
.name = "S",
|
||||||
|
.syntax = .flag,
|
||||||
|
.zig_equivalent = .driver_punt,
|
||||||
|
.pd1 = true,
|
||||||
|
.pd2 = false,
|
||||||
|
.psl = false,
|
||||||
|
},
|
||||||
.{
|
.{
|
||||||
.name = "<unknown>",
|
.name = "<unknown>",
|
||||||
.syntax = .flag,
|
.syntax = .flag,
|
||||||
|
|
@ -119,7 +133,7 @@ flagpd1("###"),
|
||||||
.{
|
.{
|
||||||
.name = "E",
|
.name = "E",
|
||||||
.syntax = .flag,
|
.syntax = .flag,
|
||||||
.zig_equivalent = .other,
|
.zig_equivalent = .driver_punt,
|
||||||
.pd1 = true,
|
.pd1 = true,
|
||||||
.pd2 = false,
|
.pd2 = false,
|
||||||
.psl = true,
|
.psl = true,
|
||||||
|
|
@ -1127,7 +1141,7 @@ flagpd1("###"),
|
||||||
.{
|
.{
|
||||||
.name = "help",
|
.name = "help",
|
||||||
.syntax = .flag,
|
.syntax = .flag,
|
||||||
.zig_equivalent = .passthrough,
|
.zig_equivalent = .driver_punt,
|
||||||
.pd1 = true,
|
.pd1 = true,
|
||||||
.pd2 = false,
|
.pd2 = false,
|
||||||
.psl = true,
|
.psl = true,
|
||||||
|
|
@ -3131,7 +3145,7 @@ sepd1("header-include-file"),
|
||||||
.{
|
.{
|
||||||
.name = "help",
|
.name = "help",
|
||||||
.syntax = .flag,
|
.syntax = .flag,
|
||||||
.zig_equivalent = .passthrough,
|
.zig_equivalent = .driver_punt,
|
||||||
.pd1 = true,
|
.pd1 = true,
|
||||||
.pd2 = true,
|
.pd2 = true,
|
||||||
.psl = false,
|
.psl = false,
|
||||||
|
|
|
||||||
|
|
@ -1240,7 +1240,7 @@ pub const ClangArgIterator = extern struct {
|
||||||
positional,
|
positional,
|
||||||
l,
|
l,
|
||||||
ignore,
|
ignore,
|
||||||
passthrough,
|
driver_punt,
|
||||||
pic,
|
pic,
|
||||||
no_pic,
|
no_pic,
|
||||||
nostdlib,
|
nostdlib,
|
||||||
|
|
|
||||||
|
|
@ -630,7 +630,7 @@ static int main0(int argc, char **argv) {
|
||||||
break;
|
break;
|
||||||
case Stage2ClangArgIgnore:
|
case Stage2ClangArgIgnore:
|
||||||
break;
|
break;
|
||||||
case Stage2ClangArgPassthrough:
|
case Stage2ClangArgDriverPunt:
|
||||||
// Never mind what we're doing, just pass the args directly. For example --help.
|
// Never mind what we're doing, just pass the args directly. For example --help.
|
||||||
return ZigClang_main(argc, argv);
|
return ZigClang_main(argc, argv);
|
||||||
case Stage2ClangArgPIC:
|
case Stage2ClangArgPIC:
|
||||||
|
|
|
||||||
|
|
@ -326,7 +326,7 @@ enum Stage2ClangArg {
|
||||||
Stage2ClangArgPositional,
|
Stage2ClangArgPositional,
|
||||||
Stage2ClangArgL,
|
Stage2ClangArgL,
|
||||||
Stage2ClangArgIgnore,
|
Stage2ClangArgIgnore,
|
||||||
Stage2ClangArgPassthrough,
|
Stage2ClangArgDriverPunt,
|
||||||
Stage2ClangArgPIC,
|
Stage2ClangArgPIC,
|
||||||
Stage2ClangArgNoPIC,
|
Stage2ClangArgNoPIC,
|
||||||
Stage2ClangArgNoStdLib,
|
Stage2ClangArgNoStdLib,
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ const known_options = [_]KnownOpt{
|
||||||
},
|
},
|
||||||
.{
|
.{
|
||||||
.name = "help",
|
.name = "help",
|
||||||
.ident = "passthrough",
|
.ident = "driver_punt",
|
||||||
},
|
},
|
||||||
.{
|
.{
|
||||||
.name = "fPIC",
|
.name = "fPIC",
|
||||||
|
|
@ -74,6 +74,14 @@ const known_options = [_]KnownOpt{
|
||||||
.name = "Wl,",
|
.name = "Wl,",
|
||||||
.ident = "wl",
|
.ident = "wl",
|
||||||
},
|
},
|
||||||
|
.{
|
||||||
|
.name = "E",
|
||||||
|
.ident = "driver_punt",
|
||||||
|
},
|
||||||
|
.{
|
||||||
|
.name = "S",
|
||||||
|
.ident = "driver_punt",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const blacklisted_options = [_][]const u8{};
|
const blacklisted_options = [_][]const u8{};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue