-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mingw] Use find_file to find compiler, fall back to unprefixed windres if the prefixed version doesn't exist #15179
Conversation
…es if the prefixed version doesn't exist
@vadi2 Can you please test this PR? Thanks. |
Yes, happy to! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately it fails on installing a dependency first, this is in the Github Actions environment:
[1/18] cmd.exe /C "cd /D D:\a\Mudlet\Mudlet\3rdparty\vcpkg\buildtrees\zlib\x64-mingw-dynamic-dbg && x86_64-w64-mingw32-windres.exe -D GCC_WINDRES -I D:/a/Mudlet/Mudlet/3rdparty/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean -I D:/a/Mudlet/Mudlet/3rdparty/vcpkg/buildtrees/zlib/x64-mingw-dynamic-dbg -o D:/a/Mudlet/Mudlet/3rdparty/vcpkg/buildtrees/zlib/x64-mingw-dynamic-dbg/zlib1rc.obj -i D:/a/Mudlet/Mudlet/3rdparty/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean/win32/zlib1.rc"
FAILED: zlib1rc.obj
cmd.exe /C "cd /D D:\a\Mudlet\Mudlet\3rdparty\vcpkg\buildtrees\zlib\x64-mingw-dynamic-dbg && x86_64-w64-mingw32-windres.exe -D GCC_WINDRES -I D:/a/Mudlet/Mudlet/3rdparty/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean -I D:/a/Mudlet/Mudlet/3rdparty/vcpkg/buildtrees/zlib/x64-mingw-dynamic-dbg -o D:/a/Mudlet/Mudlet/3rdparty/vcpkg/buildtrees/zlib/x64-mingw-dynamic-dbg/zlib1rc.obj -i D:/a/Mudlet/Mudlet/3rdparty/vcpkg/buildtrees/zlib/src/1.2.11-63309e48e5.clean/win32/zlib1.rc"
'x86_64-w64-mingw32-windres.exe' is not recognized as an internal or external command,
operable program or batch file.
ninja: build stopped: subcommand failed.
It's working fine on my computer, have you pulled my branch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, wrong branch. Yours compiled zlib ok 👍
But zziplib was my real aim originally and that failed, filed as #15203.
@JackBoosY Remove the port-bug tag please, I pushed to the wrong branch. That commit is now in a different PR #15215 |
aabe77d
to
3a810a8
Compare
LGTM in my side. |
Thanks for the PR! |
…es if the prefixed version doesn't exist (microsoft#15179)
Describe the pull request
This PR changes the compiler detection mechanism in the mingw toolchain to use
find_file
, to detect the absence of prefixed executable, and fall back to the unprefixed version.All mingw triplets
Yes