Skip to content

llvmPackages: clean up rebuild avoidance#447071

Merged
alyssais merged 8 commits intoNixOS:stagingfrom
LunNova:push-lxxxmkoznort
Sep 30, 2025
Merged

llvmPackages: clean up rebuild avoidance#447071
alyssais merged 8 commits intoNixOS:stagingfrom
LunNova:push-lxxxmkoznort

Conversation

@LunNova
Copy link
Member

@LunNova LunNova commented Sep 29, 2025

Rebuild avoidance cleanup for llvmPackages TODOs from #440273 (@emilazy's big obsolete LLVM version drop PR) and #446207 (my enableClangToolsExtra PR)

I hope #442017 lands so there's not a need to worry about rebuilds from cmakeFlags ordering in the future.

Things done

  • Built on platform:
    • x86_64-linux
      • .#llvmPackages_{git,19}.lib{clang,llvm}{.tests.withoutOptionalFeatures,} .#llvmPackages_{git,19}.{lldb,lld,libunwind,openmp,libcxx,bolt,clangNoCompilerRtWithLibc}
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related labels Sep 29, 2025
Comment on lines +105 to +107
++ lib.optional (lib.versionAtLeast release_version "20") (
lib.cmakeFeature "LLVM_DIR" "${libllvm.dev}/lib/cmake/llvm"
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sorted LLVM_DIR up to here so that when llvm 19 is dropped it will already be in the right place instead of left in an unconditional ++ [ … ] at the bottom.

Copy link
Member

@alyssais alyssais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@LunNova LunNova requested a review from alyssais September 30, 2025 15:25
@alyssais alyssais merged commit 10a4dec into NixOS:staging Sep 30, 2025
27 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants