| author | |
| committer | |
| log | 7d538d6e536aedc3d71c806b8831c73bb5dd0c62 |
| tree | d218ec9e2d3ee6c4f335a21d8286e29d8c000a09 |
| parent | be6a81d3a70818ed143d004727d352f552384af5 |
This pads the install names area in final (stage3) zig executable on
macos. The executable size grows by 4096 bytes, or roughly 0.002% .
closes #133881 files changed, 4 insertions(+), 0 deletions(-)
build.zig+4| ... | ... | @@ -569,6 +569,10 @@ fn addCmakeCfgOptionsToExe( |
| 569 | 569 | exe: *std.build.LibExeObjStep, |
| 570 | 570 | use_zig_libcxx: bool, |
| 571 | 571 | ) !void { |
| 572 | if (exe.target.isDarwin()) { | |
| 573 | // useful for package maintainers | |
| 574 | exe.headerpad_max_install_names = true; | |
| 575 | } | |
| 572 | 576 | exe.addObjectFile(fs.path.join(b.allocator, &[_][]const u8{ |
| 573 | 577 | cfg.cmake_binary_dir, |
| 574 | 578 | "zigcpp", |