summarylogtreecommitdiffstats
path: root/mingw-lld.sh
blob: b9d6ea845001d36c4ae116cb559f95e95c94b7c3 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# lld does not allow --sort-common option, replace it in command files: "lld @/tmp/cc56X55P"
for arg in "$@"
do
   grep -qE "^@" <<< "$arg" && sed -i "s|--sort-common|--as-needed|g" ${arg:1}
done

/usr/bin/ld.lld "$@"