more fixing

This commit is contained in:
2025-12-17 15:01:47 -06:00
parent c7c855a35a
commit e1d5595b06

View File

@@ -102,10 +102,14 @@ ld.lld:ld:lld:ld"
# full path to the real tool # full path to the real tool
realT="$(command -v "${realT}")" realT="$(command -v "${realT}")"
# add fuse-ld for the compiler
local addFlag=''
if line_contains "${realT}" clang; then addFlag="-fuse-ld=${USE_LD}"; fi
# create generic tool version # create generic tool version
echo "#!/usr/bin/env bash echo "#!/usr/bin/env bash
echo \$@ > ${compilerDir}/${genericT}.\${RANDOM} echo \$@ > ${compilerDir}/${genericT}.\${RANDOM}
exec \"${realT}\" \"\$@\"" >"${compilerDir}/${genericT}" exec \"${realT}\" ${addFlag} \"\$@\"" >"${compilerDir}/${genericT}"
# copy generic to gnu/clang variants # copy generic to gnu/clang variants
# cp "${compilerDir}/${genericT}" "${compilerDir}/${gnuT}" 2>/dev/null # cp "${compilerDir}/${genericT}" "${compilerDir}/${gnuT}" 2>/dev/null