-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
squeak: fix build with LLVM 16 #268227
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
squeak: fix build with LLVM 16 #268227
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17287,7 +17287,9 @@ with pkgs; | |
| inherit (darwin.apple_sdk.frameworks) SystemConfiguration CoreFoundation Security; | ||
| }; | ||
|
|
||
| squeak = callPackage ../development/compilers/squeak { }; | ||
| squeak = callPackage ../development/compilers/squeak { | ||
| stdenv = clangStdenv; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this need to be
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When omitted, I don't know why, in the default stdenv, it detects clang, as it's no longer passed into the environment. If I pass in So, yes, I think this does have to be |
||
| }; | ||
|
|
||
| squirrel-sql = callPackage ../development/tools/database/squirrel-sql { | ||
| drivers = [ jtds_jdbc mssql_jdbc mysql_jdbc postgresql_jdbc ]; | ||
|
|
||
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 would prefer this to be a list at
NIX_CFLAGS_COMPILErather than a string atenv.NIX_CFLAGS_COMPILE, unless we have a policy of usingenv.«…»that I don't know about.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.
env.NIX_CFLAGS_COMPILEis definitely the majority. I also preferNIX_CFLAGS_COMPILE, and I'll change it to that form as it works just fine.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.
No, please don't. Moving environmental variables to
envis a step towards__structuredAttrssupport, see #263773.Uh oh!
There was an error while loading. Please reload this page.
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.
We've just done #217206 this year, it's unbelievable there are still that many instances of
NIX_CFLAGS_COMPILE. Does the command count patterns like the following?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.
It would count those, yes. There's likely quite a few false positives.
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.
Believe it because it's an undocumented practice - https://nixos.org/manual/nixpkgs/unstable/.