Commit 3542dcad33
2022-01-11 18:41:26
1 parent
9b97edbChanged files (3)
src/clang_options_data.zig
@@ -1983,7 +1983,7 @@ flagpsl("MT"),
.{
.name = "sysroot",
.syntax = .separate,
- .zig_equivalent = .other,
+ .zig_equivalent = .sysroot,
.pd1 = false,
.pd2 = true,
.psl = false,
@@ -5970,7 +5970,7 @@ jspd1("undefined"),
.{
.name = "sysroot=",
.syntax = .joined,
- .zig_equivalent = .other,
+ .zig_equivalent = .sysroot,
.pd1 = false,
.pd2 = true,
.psl = false,
src/main.zig
@@ -1468,6 +1468,9 @@ fn buildOutputType(
fatal("expected [command|reactor] for -mexec-mode=[value], found '{s}'", .{it.only_arg});
};
},
+ .sysroot => {
+ sysroot = it.only_arg;
+ },
}
}
// Parse linker args.
@@ -4115,6 +4118,7 @@ pub const ClangArgIterator = struct {
strip,
exec_model,
emit_llvm,
+ sysroot,
};
const Args = struct {
tools/update_clang_options.zig
@@ -412,6 +412,10 @@ const known_options = [_]KnownOpt{
.name = "emit-llvm",
.ident = "emit_llvm",
},
+ .{
+ .name = "sysroot",
+ .ident = "sysroot",
+ },
};
const blacklisted_options = [_][]const u8{};