Merge pull request #221677 from trofi/wrap-cross-cpp
cc-wrapper: wrap `cpp` for cross just like to native
This commit is contained in:
commit
d621e7e1ac
|
@ -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
|
||||
''
|
||||
|
||||
|
|
Loading…
Reference in a new issue