-
-
Notifications
You must be signed in to change notification settings - Fork 15.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: upgrade to 0.6.0 #85183
zig: upgrade to 0.6.0 #85183
Conversation
Co-Authored-By: Andrew Kelley <andrew@ziglang.org>
patches = [ ./llvm10_polly.patch ]; | ||
|
||
postPatch = '' | ||
export llvm_extras=-Wl,${llvmPackages.llvm}/lib/LLVMPolly.so | ||
substituteAllInPlace CMakeLists.txt | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something like this should work (will also need to add substituteAll
to the args):
patches = [
(substituteAll {
src = ./llvm10_polly.patch;
llvm_extras = "-Wl,${llvmPackages.llvm}/lib/LLVMPolly.so";
})
];
Why does it keep re-requesting my review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. ldd $(which zig)
also shows LLVMPolly.so
, so my suggestion doesn't appear to have screwed anything up ^^. Built and ran the "Hello World" example just fine.
[5 built, 10 copied (907.4 MiB), 119.7 MiB DL]
https://github.com/NixOS/nixpkgs/pull/85183
1 package built:
zig
just for future reference, updates commit messages are always like
See https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#submitting-changes |
@andrewrk Build fails on darwin: /private/var/folders/wf/qxrs82v946n91pb5s71n3dy80000gp/T/nix-build-zig-0.6.0.drv-0/source/src/os.cpp:1105:9: error: use of undeclared identifier 'futimens'
if (futimens(file, times) == -1) {
^
1 error generated.
make[2]: *** [CMakeFiles/zigcompiler.dir/build.make:304: CMakeFiles/zigcompiler.dir/src/os.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:225: CMakeFiles/zigcompiler.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
builder for '/nix/store/b7w0k884rcg5f0nlwm1jahxazgiillbw-zig-0.6.0.drv' failed with exit code 2
error: build of '/nix/store/b7w0k884rcg5f0nlwm1jahxazgiillbw-zig-0.6.0.drv' failed My macOS version: $ sw_vers -productVersion
10.13.6 According to https://ziglang.org/#Support-Table, macOS 10.13+ is supported. |
Motivation for this change
See Zig 0.6.0 release notes
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)