ccacheWrapper: make usable with clang

Override original `wrapCCWith` call to preserve essential arguments
This commit is contained in:
Sebastian Ullrich 2019-09-16 14:48:32 +02:00 committed by Frederik Rietdijk
parent 054f01ee1b
commit 046ea6d08f

View file

@ -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 { };