cc-wrapper: make $tool-prefixed cpp wrapping unconditional

This commit is contained in:
Sergei Trofimovich 2023-03-17 18:03:33 +00:00
parent 7105890faf
commit 0ebe51030f

View File

@ -226,12 +226,10 @@ stdenv.mkDerivation {
ln -s ${targetPrefix}clang++ $out/bin/${targetPrefix}c++
fi
if [ -e $ccPath/cpp ]; then
wrap ${targetPrefix}cpp $wrapper $ccPath/cpp
'' + lib.optionalString (hostPlatform != targetPlatform) ''
elif [ -e $ccPath/${targetPrefix}cpp ]; then
if [ -e $ccPath/${targetPrefix}cpp ]; then
wrap ${targetPrefix}cpp $wrapper $ccPath/${targetPrefix}cpp
'' + ''
elif [ -e $ccPath/cpp ]; then
wrap ${targetPrefix}cpp $wrapper $ccPath/cpp
fi
''