git.iko.soy/typeable/nixpkgs
on master help sign in
ccacheWrapper: make usable with clang

Override original `wrapCCWith` call to preserve essential arguments

commit046ea6d08fce7bdc6360905adafae793310edfc2 authorSebastian Ullrich <sebasti@nullri.ch> dateMon 16 Sep 2019, 14:48 (7 years ago) parent054f01e
1 file changed+5−2
pkgs/top-level/all-packages.nix+5−2
pkgs/top-level/all-packages.nix+5−2
@@ -9278,8 +9278,11 @@ in
92789278 # };
92799279 # You can use a different directory, but whichever directory you choose
92809280 # should be owned by user root, group nixbld with permissions 0770.
9281− ccacheWrapper = makeOverridable ({ extraConfig ? "", unwrappedCC ? stdenv.cc.cc }:
9282− wrapCC (ccache.links {inherit unwrappedCC extraConfig;})) {};
9281+ ccacheWrapper = makeOverridable ({ extraConfig ? "", cc ? stdenv.cc }:
9282+ cc.override { cc = ccache.links {
9283+ inherit extraConfig;
9284+ unwrappedCC = cc.cc;
9285+ }; }) {};
92839286 ccacheStdenv = lowPrio (overrideCC stdenv buildPackages.ccacheWrapper);
92849287
92859288 cccc = callPackage ../development/tools/analysis/cccc { };