Use simpler expression for libgcc path in MSW CI workflow

Use the gcc option which outputs this path directly, rather than
constructing it manually from pieces.

No real changes.
This commit is contained in:
Vadim Zeitlin 2021-07-23 15:24:55 +01:00
parent 3e7ad82016
commit af019685da

View File

@ -128,7 +128,7 @@ jobs:
sudo chown -R $normal_uid $GITHUB_WORKSPACE
# Add the directories containing MinGW and wx DLLs to Wine path.
winepath="$(winepath --windows /usr/lib/gcc/${HOST_TRIPLET}/$(${HOST_TRIPLET}-gcc -dumpversion|tr -d '\r'))"
winepath="$(winepath --windows $(dirname $(${HOST_TRIPLET}-g++ -print-libgcc-file-name)))"
winepath="${winepath};$(winepath --windows $(pwd)/lib)"
echo "WINEPATH=${winepath}" >> $GITHUB_ENV