aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-06-20 10:14:18 +0200
committerJakub Konka <kubkon@jakubkonka.com>2021-06-24 14:45:45 +0200
commit09b46198ff8d64c9884a0cf13788855b4d4bbe2d (patch)
treeda0ac067ec33e1cb5e3a1bdcd3438c1cb6514621 /src/link.zig
parenta600d4188025ae6ffc3fc5d6fa7572ef34438215 (diff)
downloadzig-09b46198ff8d64c9884a0cf13788855b4d4bbe2d.tar.gz
zig-09b46198ff8d64c9884a0cf13788855b4d4bbe2d.zip
zld: move logic unpacking path to libc stub to Compilation
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig
index bae468d075..4e1b38d07b 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -62,6 +62,9 @@ pub const Options = struct {
/// Darwin-only. If this is true, `use_llvm` is true, and `is_native_os` is true, this link code will
/// use system linker `ld` instead of the LLD.
system_linker_hack: bool,
+ /// Path to Zig-hosted libc stub file.
+ /// On Darwin, this is a path to libSystem.B.tbd stub file.
+ libc_stub_path: ?[]const u8,
link_libc: bool,
link_libcpp: bool,
link_libunwind: bool,