-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zig_0_10: fix macOS build #221153
Merged
Merged
zig_0_10: fix macOS build #221153
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubkon
force-pushed
the
kubkon-zig-0.10-fixes
branch
from
March 14, 2023 10:37
33694ed
to
9b9d509
Compare
kubkon
changed the title
zig: add patch fixing alignment panics when building zig
zig: 0.10 fix macOS build
Mar 14, 2023
@ofborg build zig_0_10 |
wegank
approved these changes
Mar 14, 2023
@ofborg build ncdu |
Can make 0.10 the default on darwin as well. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a0d1e76e1c3..62a5de4e4df 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24198,8 +24198,7 @@ with pkgs;
zig_0_10 = darwin.apple_sdk_11_0.callPackage ../development/compilers/zig/0.10.nix {
llvmPackages = llvmPackages_15;
};
- # Zig 0.10.1 is broken on Darwin, so use 0.9.1 on Darwin instead.
- zig = if stdenv.isDarwin then zig_0_9 else zig_0_10;
+ zig = zig_0_10;
zimlib = callPackage ../development/libraries/zimlib { };
|
Relevant upstream issue: ziglang/zig#14559 The patch is a backport of fixes that landed in zig-master and can be removed with zig-0.11 release. Additionally, make sure we link statically against LLVM to avoid unpleasant runtime surprises originating from mixing static and dynamic LLVM libraries. Finally, unbreak Zig 0.10.1 on macOS.
kubkon
force-pushed
the
kubkon-zig-0.10-fixes
branch
from
March 14, 2023 13:03
9b9d509
to
18c80c1
Compare
Done! |
I haven't been able to build Zig on my machine, and I now think it's probably because I have XCode Command Line Tools installed. Since the builds succeed on ofborg, I assume that merging this PR is fine. |
@ofborg eval |
Janik-Haag
added
the
12. first-time contribution
This PR is the author's first one; please be gentle!
label
Jun 13, 2023
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
6.topic: darwin
Running or building packages on Darwin
10.rebuild-darwin: 1-10
10.rebuild-linux: 1-10
12. first-time contribution
This PR is the author's first one; please be gentle!
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relevant upstream issue: ziglang/zig#14559
The patch is a backport of fixes that landed in zig-master and can be removed with zig-0.11 release.
Additionally, make sure we link statically against LLVM to avoid unpleasant runtime surprises originating from mixing static and dynamic LLVM libraries.
Finally, unbreak Zig 0.10.1 on macOS.
cc @winterqt
Closes #214545.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)