From e1d5595b0653baad5f2f81b0be5393cd84b2b71f Mon Sep 17 00:00:00 2001 From: Levon Gevorgyan Date: Wed, 17 Dec 2025 15:01:47 -0600 Subject: [PATCH] more fixing --- lib/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/build.sh b/lib/build.sh index a5db123..57f96b7 100644 --- a/lib/build.sh +++ b/lib/build.sh @@ -102,10 +102,14 @@ ld.lld:ld:lld:ld" # full path to the real tool 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 echo "#!/usr/bin/env bash echo \$@ > ${compilerDir}/${genericT}.\${RANDOM} -exec \"${realT}\" \"\$@\"" >"${compilerDir}/${genericT}" +exec \"${realT}\" ${addFlag} \"\$@\"" >"${compilerDir}/${genericT}" # copy generic to gnu/clang variants # cp "${compilerDir}/${genericT}" "${compilerDir}/${gnuT}" 2>/dev/null