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="),...@@ -4978,7 +4978,14 @@ joinpd1("fdiagnostics-show-category="),
4978joinpd1("fdiagnostics-show-location="),4978joinpd1("fdiagnostics-show-location="),
4979joinpd1("fopenmp-cuda-blocks-per-sm="),4979joinpd1("fopenmp-cuda-blocks-per-sm="),
4980jspd1("fxray-instruction-threshold"),4980jspd1("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},
4982.{4989.{
4983 .name = "libomptarget-nvptx-bc-path=",4990 .name = "libomptarget-nvptx-bc-path=",
4984 .syntax = .joined,4991 .syntax = .joined,
src/main.zig+2
...@@ -1627,6 +1627,7 @@ fn buildOutputType(...@@ -1627,6 +1627,7 @@ fn buildOutputType(
1627 },1627 },
1628 .weak_library => try system_libs.put(it.only_arg, .{ .weak = true }),1628 .weak_library => try system_libs.put(it.only_arg, .{ .weak = true }),
1629 .weak_framework => try frameworks.put(gpa, it.only_arg, .{ .weak = true }),1629 .weak_framework => try frameworks.put(gpa, it.only_arg, .{ .weak = true }),
1630 .headerpad_max_install_names => headerpad_max_install_names = true,
1630 }1631 }
1631 }1632 }
1632 // Parse linker args.1633 // Parse linker args.
...@@ -4581,6 +4582,7 @@ pub const ClangArgIterator = struct {...@@ -4581,6 +4582,7 @@ pub const ClangArgIterator = struct {
4581 entry,4582 entry,
4582 weak_library,4583 weak_library,
4583 weak_framework,4584 weak_framework,
4585 headerpad_max_install_names,
4584 };4586 };
45854587
4586 const Args = struct {4588 const Args = struct {
tools/update_clang_options.zig+4
...@@ -444,6 +444,10 @@ const known_options = [_]KnownOpt{...@@ -444,6 +444,10 @@ const known_options = [_]KnownOpt{
444 .name = "weak_framework",444 .name = "weak_framework",
445 .ident = "weak_framework",445 .ident = "weak_framework",
446 },446 },
447 .{
448 .name = "headerpad_max_install_names",
449 .ident = "headerpad_max_install_names",
450 },
447};451};
448452
449const blacklisted_options = [_][]const u8{};453const blacklisted_options = [_][]const u8{};