-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Fixed nix build for macos. #1914
base: master
Are you sure you want to change the base?
Fixed nix build for macos. #1914
Conversation
d7166e5
to
a5af82b
Compare
I tested on a Ubuntu x86_64 on WSL and it compiled and run ok. |
This one looks wrong. You'd adding the configurable path yes, but you don't default to the LLVM one, so any build outside of nix breaks. |
You are right. I forgot to build with the local llvm. 🤦♂️ |
a5af82b
to
25b0474
Compare
Wouldn't it make more sense to make the override to change from the default if the override is set to a value, rather than have it depend on nix? So "if LLVM_CRT_LIBRARY_DIR is empty string, use the default, otherwise use the code with LLVM_CRT_LIBRARY_DIR" |
This seems to be Apple only so I decided to only set on this if. But I'm ok setting as default. |
I meant to get rid of the C3_IS_NIX_BUILD entirely and only use LLVM_CRT_LIBRARY_DIR if it is set to a non-empty value. |
Hmm.. that failed |
Maybe this is better:
|
I'm not an expert on nix, so I'd appreciate some help with this.
On macOS, the nix was failing because it was finding the llvm 16 on the nix hash.
I updated the flake, and added the missing piece "compiler-rt" to find the rest of the runtime libraries.
This hash pushes llvm to version 19.