install-wrappers: Use llvm-windres if available
If the llvm-windres tool is available, use that instead of our own wrapper that calls clang, llvm-rc and llvm-cvtres separately.
This commit is contained in:
1 parent
37936ec0ea
commit
fc1b1ba110
1 file changed
+7
-3
+7
-3
@@ -93,9 +93,13 @@ for arch in $ARCHS; do
|
|||||||
fi
|
fi
|
||||||
ln -sf $link_target$EXEEXT $arch-w64-$target_os-$exec$EXEEXT || true
|
ln -sf $link_target$EXEEXT $arch-w64-$target_os-$exec$EXEEXT || true
|
||||||
done
|
done
|
||||||
for exec in windres; do
|
if [ -f "llvm-windres$EXEEXT" ]; then
|
||||||
ln -sf $exec-wrapper$EXEEXT $arch-w64-$target_os-$exec$EXEEXT
|
# windres can't use llvm-wrapper, as that loses the original
|
||||||
done
|
# target arch prefix.
|
||||||
|
ln -sf llvm-windres$EXEEXT $arch-w64-$target_os-windres$EXEEXT
|
||||||
|
else
|
||||||
|
ln -sf windres-wrapper$EXEEXT $arch-w64-$target_os-windres$EXEEXT
|
||||||
|
fi
|
||||||
for exec in ld objdump dlltool; do
|
for exec in ld objdump dlltool; do
|
||||||
ln -sf $exec-wrapper.sh $arch-w64-$target_os-$exec
|
ln -sf $exec-wrapper.sh $arch-w64-$target_os-$exec
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in new issue
Block a user