mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
ccacheWrapper: make usable with clang
Override original `wrapCCWith` call to preserve essential arguments
This commit is contained in:
parent
054f01ee1b
commit
046ea6d08f
1 changed files with 5 additions and 2 deletions
|
@ -9278,8 +9278,11 @@ in
|
|||
# };
|
||||
# You can use a different directory, but whichever directory you choose
|
||||
# should be owned by user root, group nixbld with permissions 0770.
|
||||
ccacheWrapper = makeOverridable ({ extraConfig ? "", unwrappedCC ? stdenv.cc.cc }:
|
||||
wrapCC (ccache.links {inherit unwrappedCC extraConfig;})) {};
|
||||
ccacheWrapper = makeOverridable ({ extraConfig ? "", cc ? stdenv.cc }:
|
||||
cc.override { cc = ccache.links {
|
||||
inherit extraConfig;
|
||||
unwrappedCC = cc.cc;
|
||||
}; }) {};
|
||||
ccacheStdenv = lowPrio (overrideCC stdenv buildPackages.ccacheWrapper);
|
||||
|
||||
cccc = callPackage ../development/tools/analysis/cccc { };
|
||||
|
|
Loading…
Reference in a new issue