gccStdenv: actually force gcc if not already used

Previously the `cc` of the stdenv wasn't changed if `!stdenv.cc.isGNU`
which meant that gccStdenv didn't actually use gcc -- in contrast to all
the versioned `gcc*Stdenv`s.
This commit is contained in:
sternenseemann 2021-05-17 23:46:07 +02:00
parent c958743492
commit b863a7c8c2

View File

@ -10402,7 +10402,11 @@ in
};
}) else ccWrapper;
gccStdenv = if stdenv.cc.isGNU then stdenv else stdenv.override {
gccStdenv =
if stdenv.cc.isGNU
then stdenv
else stdenv.override {
cc = buildPackages.gcc;
allowedRequisites = null;
# Remove libcxx/libcxxabi, and add clang for AS if on darwin (it uses
# clang's internal assembler).