get current toolchain from gcc output

This commit is contained in:
Kevin Pfeifer 2022-12-03 02:47:27 +01:00
parent 67b78f0c25
commit b610722fac
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ if [[ ! -x melonDS.exe ]]; then
fi
mkdir -p dist
for lib in $(ldd melonDS.exe | grep mingw | sed "s/.*=> //" | sed "s/(.*)//"); do
tool=$(gcc -v 2>&1 | head -1 | awk '{print $1}')
for lib in $(ldd melonDS.exe | grep $tool | sed "s/.*=> //" | sed "s/(.*)//"); do
cp "${lib}" dist
done