Merge pull request #221677 from trofi/wrap-cross-cpp

cc-wrapper: wrap `cpp` for cross just like to native
This commit is contained in:
Sergei Trofimovich 2023-03-17 17:55:58 +00:00 committed by GitHub
commit d621e7e1ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,6 +228,10 @@ stdenv.mkDerivation {
if [ -e $ccPath/cpp ]; then
wrap ${targetPrefix}cpp $wrapper $ccPath/cpp
'' + lib.optionalString (hostPlatform != targetPlatform) ''
elif [ -e $ccPath/${targetPrefix}cpp ]; then
wrap ${targetPrefix}cpp $wrapper $ccPath/${targetPrefix}cpp
'' + ''
fi
''