diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-12-03 13:41:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-03 13:41:31 -0800 |
| commit | ecf7dfcd3a3e575ee525487687a0b7607a6a7481 (patch) | |
| tree | 56cf2bfa237e4fdb0f13230983184e86b2f9b501 /src/link.zig | |
| parent | a2cd9dc3bd1e6a5f4e6a3c593b05b0f7bd2943ce (diff) | |
| parent | d3be4992708e7e6631df52fb5f4ccb0f521a77de (diff) | |
| download | zig-ecf7dfcd3a3e575ee525487687a0b7607a6a7481.tar.gz zig-ecf7dfcd3a3e575ee525487687a0b7607a6a7481.zip | |
Merge pull request #7273 from kubkon/lld-codesig-poc
lld+macho: patch lld output on Apple Silicon by calculating and embedding adhoc code signature
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig index 75700433e6..b1c837fc62 100644 --- a/src/link.zig +++ b/src/link.zig @@ -238,6 +238,14 @@ pub const File = struct { } pub fn makeExecutable(base: *File) !void { + switch (base.options.output_mode) { + .Obj => return, + .Lib => switch (base.options.link_mode) { + .Static => return, + .Dynamic => {}, + }, + .Exe => {}, + } switch (base.tag) { .macho => if (base.file) |f| { if (base.intermediary_basename != null) { |
