aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2023-09-25 15:51:57 -0400
committerMichael Dusan <michael.dusan@gmail.com>2023-09-25 17:07:41 -0400
commitebd0776b28c50169936b58f8ba05be70e854fd35 (patch)
treeedaccbd6332b18897db92748ec7d3c2a20baf808 /src/link.zig
parentf6877fbc4905b1bcd582415baebf3329725a1a43 (diff)
downloadzig-ebd0776b28c50169936b58f8ba05be70e854fd35.tar.gz
zig-ebd0776b28c50169936b58f8ba05be70e854fd35.zip
kubkon review changes: 3
- make vendored settings failure unreachable - rename field `darwinSdkLayout` → `darwin_sdk_layout` - make `darwin_sdk_layout` optional
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/link.zig b/src/link.zig
index efd02e982e..844ddb7b40 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -137,7 +137,7 @@ pub const Options = struct {
link_libc: bool,
link_libcpp: bool,
link_libunwind: bool,
- darwinSdkLayout: DarwinSdkLayout,
+ darwin_sdk_layout: ?DarwinSdkLayout,
function_sections: bool,
no_builtin: bool,
eh_frame_hdr: bool,
@@ -285,8 +285,6 @@ pub const CompressDebugSections = enum { none, zlib };
/// The filesystem layout of darwin SDK elements.
pub const DarwinSdkLayout = enum {
- /// Does not apply to the target.
- none,
/// macOS SDK layout: TOP { /usr/include, /usr/lib, /System/Library/Frameworks }.
sdk,
/// Shipped libc layout: TOP { /lib/libc/include, /lib/libc/darwin, <NONE> }.