authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-06-29 08:17:49+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-06-29 17:21:32+02:00
log7cc417644862a9b9523545f4455da7722afc8209
tree99866bef4b0a261f061b47bee127e3fa87f560f6
parent59359b25474724018c14b8cb685837f4480c0de5

clang: add Zig equivalent for -headerpad_max_install_names cli flag


3 files changed, 14 insertions(+), 1 deletions(-)

src/clang_options_data.zig+8-1
......@@ -4978,7 +4978,14 @@ joinpd1("fdiagnostics-show-category="),
49784978joinpd1("fdiagnostics-show-location="),
49794979joinpd1("fopenmp-cuda-blocks-per-sm="),
49804980jspd1("fxray-instruction-threshold"),
4981joinpd1("headerpad_max_install_names"),
4981.{
4982 .name = "headerpad_max_install_names",
4983 .syntax = .joined,
4984 .zig_equivalent = .headerpad_max_install_names,
4985 .pd1 = true,
4986 .pd2 = false,
4987 .psl = false,
4988},
49824989.{
49834990 .name = "libomptarget-nvptx-bc-path=",
49844991 .syntax = .joined,
src/main.zig+2
......@@ -1627,6 +1627,7 @@ fn buildOutputType(
16271627 },
16281628 .weak_library => try system_libs.put(it.only_arg, .{ .weak = true }),
16291629 .weak_framework => try frameworks.put(gpa, it.only_arg, .{ .weak = true }),
1630 .headerpad_max_install_names => headerpad_max_install_names = true,
16301631 }
16311632 }
16321633 // Parse linker args.
......@@ -4581,6 +4582,7 @@ pub const ClangArgIterator = struct {
45814582 entry,
45824583 weak_library,
45834584 weak_framework,
4585 headerpad_max_install_names,
45844586 };
45854587
45864588 const Args = struct {
tools/update_clang_options.zig+4
......@@ -444,6 +444,10 @@ const known_options = [_]KnownOpt{
444444 .name = "weak_framework",
445445 .ident = "weak_framework",
446446 },
447 .{
448 .name = "headerpad_max_install_names",
449 .ident = "headerpad_max_install_names",
450 },
447451};
448452
449453const blacklisted_options = [_][]const u8{};