-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Automatically use embed-manifest-via=linker
for clang-win
#159
Comments
I can't think of any downside to making |
It requires VC11+ |
Interesting. I use it unconditionally: https://github.com/boostorg/container_hash/blob/87c9eefe6ea8ed3cc0a7381e2580c1ce562e6acd/.appveyor.yml#L72 and the |
I believe your input is saliently overridden by B2 for VC<11. |
Why do you think that and how is it overridden? I mean there is Anyway the current solution is a clear Bug: The manifest-tool doesn't exist, the linker is capable of embedding the manifest but B2 still tries to run a non-existing tool. So 2 solutions:
I'd prefer the first solution as it is likely the most efficient one and provides a clean error in case of failure. The second is likely easier to implement. |
I believe Nikita means Lines 602 to 617 in 0c49944
The above does seem to set linker as the default though. Is this a recent change? Seems not: So we only need to make this default for clang-win, as it's already default for msvc. |
Hm but there seemingly was an issue:
However given that we need it now, I'd say it no longer is an issue. |
Recent fixes to clang-win.jam may have made this unnecessary, but I think embed-manifest-via=linker should still be the default. |
|
Environment and version details
Github Actions "Windows 2022" image.
Describe your use case
Building Boost with
toolset=clang-win
results in a failure:Adding
embed-manifest-via=linker
solves this.Describe the solution you'd like
Seemingly the b2 toolset uses a path to the non-existing file. For usability it would be good if B2 automatically uses
embed-manifest-via=linker
at least whenmt.exe
isn't found.The text was updated successfully, but these errors were encountered: