-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
meta: fix 'zig build -Denable-llvm' on nixos 24 #22728
base: master
Are you sure you want to change the base?
Conversation
b82afa0
to
21dfee7
Compare
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.
This entire code path looks insanely sus to my non-NixOS-using sensibilities but I guess one more flag isn't going to be the end of the world.
I'm not entirely sure what this is suppose to do. |
it prevents this
upon further inspection it does appear a binary may still have been produced
|
In Nix build environments on Linux, In any case, |
no im on nixos 24.05 linux |
Related: #18998 |
its odd because if i
|
@@ -37,6 +37,10 @@ pub fn detect(arena: Allocator, native_target: std.Target) !NativePaths { | |||
if (mem.startsWith(u8, word, "-frandom-seed=")) { | |||
continue; | |||
} | |||
if (mem.eql(u8, word, "-idirafter")) { | |||
_ = it.next().?; |
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.
?
will incorrectly crash if missing arg. also the information must not be discarded.
No description provided.