Define CC and CXX for gcc

This commit is contained in:
Rodrigo Arias 2020-10-13 17:43:23 +02:00
parent 7a37913b4e
commit 478535b4d1

View File

@ -58,6 +58,18 @@ let
intelLicense = self.bsc.intelLicense; intelLicense = self.bsc.intelLicense;
}; };
# We need to set the cc.cc.CC and cc.cc.CXX attributes, in order to
# determine the name of the compiler
# FIXME: Use a proper and automatic way to compute the compiler name
gcc = self.gcc.overrideAttrs (old1: {
cc = old1.cc.overrideAttrs (old2: {
passthru = old2.passthru // {
CC = "gcc";
CXX = "g++";
};
});
});
intelLicense = callPackage ./bsc/intel-compiler/license.nix { }; intelLicense = callPackage ./bsc/intel-compiler/license.nix { };
pmix2 = callPackage ./bsc/pmix/pmix2.nix { }; pmix2 = callPackage ./bsc/pmix/pmix2.nix { };