-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
llvm 15, 16: add zstd support #238866
llvm 15, 16: add zstd support #238866
Conversation
(for anyone following along, this is another attempt at #238266) |
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.
Thanks for continuing to work on this; a few more things:
- can you change your commit to start with
llvm_16
instead ofllvm 16
? ofborg picks up the former and it's convention - as mentioned in #238266 LLVM 16+ has a
LLVM_USE_STATIC_ZSTD
option; given the direction bzip2, zstd: AddenableStatic
option #237563 is headed (i.e. potentially having static/dynamic library outputs present withisStatic = false
/isStatic = true
respectively IIUC) I think it'd be good to add something like this tocmakeFlags
:++ lib.optional enableZstd "-DLLVM_USE_STATIC_ZSTD=${toString stdenv.hostPlatform.isStatic}"
- as mentioned, now that we're targeting
staging
anyways we can apply these changes (minus theLLVM_USE_STATIC_ZSTD
bit) tollvmPackages_15
in this PR
5330724
to
d4fc290
Compare
Is it necessary to mention this change in release note or something like that? |
Besides, I set CmakeFlags |
I think that's not necessary; this isn't a breaking change and
Ah, I traced So we can just mirror the change you made to |
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.
Looks good! Just one last set of nits.
Description of changes
Since llvm 16 support using zstd as its compression method, we should also support that.
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/
)