diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-06-27 09:24:18 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-06-27 19:53:38 +0200 |
| commit | efc5c97bff87d4c28ae9642fe69d9bc2c7e9eeb7 (patch) | |
| tree | 12b31bae7ed111c1f62541c7d46f20ad6d222717 /src/link.zig | |
| parent | a76775b50a65fd0ea0fd17d6ef3c42058df13997 (diff) | |
| download | zig-efc5c97bff87d4c28ae9642fe69d9bc2c7e9eeb7.tar.gz zig-efc5c97bff87d4c28ae9642fe69d9bc2c7e9eeb7.zip | |
macho: implement -dead_strip_dylibs linker flag
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig index 21d54d531c..18e10dc74c 100644 --- a/src/link.zig +++ b/src/link.zig @@ -199,6 +199,9 @@ pub const Options = struct { /// (Darwin) set enough space as if all paths were MATPATHLEN headerpad_max_install_names: bool = false, + /// (Darwin) remove dylibs that are unreachable by the entry point or exported symbols + dead_strip_dylibs: bool = false, + pub fn effectiveOutputMode(options: Options) std.builtin.OutputMode { return if (options.use_lld) .Obj else options.output_mode; } |
