Merge pull request #173817 from trofi/fix-gcc-12-on-darwin

gcc12: fix substituteInPlace on darwin
This commit is contained in:
Sergei Trofimovich 2022-05-21 06:42:58 +00:00 committed by GitHub
commit 857a06674d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ stdenv.mkDerivation ({
# This should kill all the stdinc frameworks that gcc and friends like to
# insert into default search paths.
+ lib.optionalString hostPlatform.isDarwin ''
substituteInPlace gcc/config/darwin-c.c \
substituteInPlace gcc/config/darwin-c.cc \
--replace 'if (stdinc)' 'if (0)'
substituteInPlace libgcc/config/t-slibgcc-darwin \