-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
llvmPackages.lldbPlugins: drop llvm/clang rebuild #366401
base: master
Are you sure you want to change the base?
Conversation
Eliminate rebuilding the following packages on darwin just for this attrset: < DarwinTools-1.drv < DarwinTools-1.tar.gz.drv < IOKit-11.0.drv < builder.pl.drv < clang-16.0.6.drv < clang-at-least-16-LLVMgold-path.patch.drv < clang-darwin-An-OS-version-preprocessor-define.patch.drv < clang-src-16.0.6.drv < llvm-16.0.6.drv < llvm-src-16.0.6.drv < psutil-6.0.0.tar.gz.drv < python3-3.12.7-env.drv < python3.12-psutil-6.0.0.drv < sysctl-system_cmds-1012.drv found by diffing the output of the command below before and after this change: ``` nix-store --query -R $(nix-instantiate -A llvmPackages.lldbPlugins) | \ cut -d- -f 2- | sort ```
66a28a0
to
1259856
Compare
Source changes look reasonable. Tried to reproduce, but not seeing the intended effect? I'm on x86_64-linux but passing
(i.e. derivation closure size is the same before and after the change) |
that shouldn't be an issue -- I can reproduce the same numbers when running on darwin or linux but I can't reproduce the ones you listed. [edit -- need to be using
|
oh -- I see the issue. you're using |
Ah, OK; I do see one fewer rebuild in that case. So, still two rebuilds of llvm-16.0.6 and the sources. Looks good to me if that is what you're expecting. |
can add backport release-24.11 tag
noticed that llvm/clang were getting built 3 times rather than 2 when testing #366057
nix-build -A llvmPackages
on staging and it is due to lldbPlugins scope. The one package in the atterset is a python wrapper around lldb with no buildPhase.Eliminate rebuilding the following packages on darwin just for this attrset:
< DarwinTools-1.drv
< DarwinTools-1.tar.gz.drv
< IOKit-11.0.drv
< builder.pl.drv
< clang-16.0.6.drv
< clang-at-least-16-LLVMgold-path.patch.drv
< clang-darwin-An-OS-version-preprocessor-define.patch.drv
< clang-src-16.0.6.drv
< llvm-16.0.6.drv
< llvm-src-16.0.6.drv
< psutil-6.0.0.tar.gz.drv
< python3-3.12.7-env.drv
< python3.12-psutil-6.0.0.drv
< sysctl-system_cmds-1012.drv
found by diffing the output of the command below before and after this change:
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.