| author | |
| committer | |
| log | 8032ecb73040f837d7232216b16ae7edaacbc867 |
| tree | 7933c36d213ab3827bc42681ffc11cea6797c347 |
| parent | 755f50a986f429f7395848e883e154c3ab6c3f26 |
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| ... | ... | @@ -532,6 +532,10 @@ fn addCmakeCfgOptionsToExe( |
| 532 | 532 | exe: *std.build.LibExeObjStep, |
| 533 | 533 | use_zig_libcxx: bool, |
| 534 | 534 | ) !void { |
| 535 | if (exe.target.isDarwin()) { | |
| 536 | // useful for package maintainers | |
| 537 | exe.headerpad_max_install_names = true; | |
| 538 | } | |
| 535 | 539 | exe.addObjectFile(fs.path.join(b.allocator, &[_][]const u8{ |
| 536 | 540 | cfg.cmake_binary_dir, |
| 537 | 541 | "zigcpp", |