clang: add Zig equivalent for -headerpad_max_install_names cli flag

This commit is contained in:
Jakub Konka 2022-06-29 08:17:49 +02:00
parent 59359b2547
commit 7cc4176448
3 changed files with 14 additions and 1 deletions

View File

@ -4978,7 +4978,14 @@ joinpd1("fdiagnostics-show-category="),
joinpd1("fdiagnostics-show-location="),
joinpd1("fopenmp-cuda-blocks-per-sm="),
jspd1("fxray-instruction-threshold"),
joinpd1("headerpad_max_install_names"),
.{
.name = "headerpad_max_install_names",
.syntax = .joined,
.zig_equivalent = .headerpad_max_install_names,
.pd1 = true,
.pd2 = false,
.psl = false,
},
.{
.name = "libomptarget-nvptx-bc-path=",
.syntax = .joined,

View File

@ -1627,6 +1627,7 @@ fn buildOutputType(
},
.weak_library => try system_libs.put(it.only_arg, .{ .weak = true }),
.weak_framework => try frameworks.put(gpa, it.only_arg, .{ .weak = true }),
.headerpad_max_install_names => headerpad_max_install_names = true,
}
}
// Parse linker args.
@ -4581,6 +4582,7 @@ pub const ClangArgIterator = struct {
entry,
weak_library,
weak_framework,
headerpad_max_install_names,
};
const Args = struct {

View File

@ -444,6 +444,10 @@ const known_options = [_]KnownOpt{
.name = "weak_framework",
.ident = "weak_framework",
},
.{
.name = "headerpad_max_install_names",
.ident = "headerpad_max_install_names",
},
};
const blacklisted_options = [_][]const u8{};