diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-20 23:59:36 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-05-20 23:59:36 +0100 |
commit | 5d2d60e3e242d9b00f0e8dacaeec7bcfed168429 (patch) | |
tree | 1ebf6b377c70b18d3b9dd728a929613e70302bcf /pkgs/development/compilers/gcc | |
parent | 25e4e7af034950c2d0f408b4b12b362968572ac2 (diff) |
gcc12: fix substituteInPlace on darwin
gcc-12 did a mass rename from .c to .cc c++ files. As a result build fails as: substitute(): ERROR: file 'gcc/config/darwin-c.c' does not exist Closes: https://github.com/NixOS/nixpkgs/issues/172877
Diffstat (limited to 'pkgs/development/compilers/gcc')
-rw-r--r-- | pkgs/development/compilers/gcc/12/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/12/default.nix b/pkgs/development/compilers/gcc/12/default.nix index 4f2da6903d300..fb76b039fb0a2 100644 --- a/pkgs/development/compilers/gcc/12/default.nix +++ b/pkgs/development/compilers/gcc/12/default.nix @@ -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 \ |