This PR is a follow-up to #26715.
Fixes intermittent MSVC link errors.
ObjectFileName
explicitly
#27687
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | sipsorcery |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Can you explain what the issue currently is, and why this is the right fix
The issue is the file name conflict.
See https://api.cirrus-ci.com/v1/task/6646912535756800/logs/build.log:
0C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1098,5): warning MSB8027: Two or more files with the name of util.cpp will produce outputs to the same location. This can lead to an incorrect build result. The files involved are ..\..\src\wallet\test\util.cpp, ..\..\src\qt\test\util.cpp. [C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\build_msvc\test_bitcoin-qt\test_bitcoin-qt.vcxproj]
as opposed to bitcoin-core/gui#729
Well, it was a blind shot… But the code change was correct and actual an improvement.
Should fix intermittent MSVC link errors.
ACK b8ed95127b23873db973b2ef4f68d9f04e9c23ae.
Same object file name change has to be done in other places in the msvc build and doesn’t affect the final build artifcat.