Skip to content

Conversation

@linusg
Copy link
Collaborator

@linusg linusg commented Nov 4, 2025

@linusg linusg requested a review from alexrp November 4, 2025 21:59
@linusg
Copy link
Collaborator Author

linusg commented Nov 4, 2025

Confirmed bdwgc builds now with:

--- a/build.zig
+++ b/build.zig
@@ -465,15 +465,6 @@ pub fn build(b: *std.Build) void {
         flags.append(b.allocator, "-D HAVE_DLADDR") catch unreachable;
     }
 
-    // TODO: as of zig 0.14, exception.h and getsect.h are not provided
-    // by zig itself for Darwin target.
-    if (t.os.tag.isDarwin() and !target.query.isNative()) {
-        flags.append(b.allocator,
-                     "-D MISSING_MACH_O_GETSECT_H") catch unreachable;
-        flags.append(b.allocator,
-                     "-D NO_MPROTECT_VDB") catch unreachable;
-    }
-
     if (enable_cplusplus and enable_werror) {
         if (linkage == .dynamic and t.os.tag == .windows or t.abi == .msvc) {
             // Avoid "replacement operator new[] cannot be declared inline"

@alexrp alexrp merged commit 74900e9 into ziglang:master Nov 4, 2025
9 checks passed
@alexrp
Copy link
Member

alexrp commented Nov 4, 2025

Oops, didn't mean to bypass CI... well, fingers crossed: https://github.com/ziglang/zig/actions/runs/19084172529

@linusg linusg deleted the bump-macos-libc branch November 4, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants