mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
clang: add Zig equivalent for -headerpad_max_install_names cli flag
This commit is contained in:
parent
59359b2547
commit
7cc4176448
@ -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,
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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{};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user