Merge pull request #123421 from sternenseemann/gcc-stdenv-force-gcc

gccStdenv: actually force gcc if not already used
This commit is contained in:
John Ericson 2021-05-17 21:55:09 -07:00 committed by GitHub
commit 275b41e4d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10410,7 +10410,11 @@ in
}; };
}) else ccWrapper; }) 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; allowedRequisites = null;
# Remove libcxx/libcxxabi, and add clang for AS if on darwin (it uses # Remove libcxx/libcxxabi, and add clang for AS if on darwin (it uses
# clang's internal assembler). # clang's internal assembler).