msys2 fix multiple definition issue#1416
Conversation
|
Uhm, this fix actually broke some of the cygwin builds... did you noticed that? |
|
@basvodde I noticed, I was planning to change the macro to be more restrictive so that cygwin won't be impacted but only msys2, then I've been busy doing other stuff, I will get back on this. Unfortunately the cpputest in msys2 is unusable until I sort this out so I'm currently building it manually as you can see in https://github.com/giuspen/cherrytree/blob/master/.travis.yml avoiding to build that source file at all with the --disable-memory-leak-detection trick |
|
Closed ? |
|
Sorry @basvodde it's because at the moment I don't have time to debug this issue anymore so I thought to just keep building cpputest on msys2 manually with --disable-memory-leak-detection for now. I noticed that even on msys2 the unit tests of cpputest fail with the changes that make it work for me so maybe it's me doing something wrong. If you have a moment to have a look it's easy to reproduce on msys2, my building instructions are https://github.com/giuspen/cherrytree/blob/master/README.md#building-cherrytree-on-windows if you remove --disable-memory-leak-detection cherrytree unit tests will fail to link with the error at the top of this pull request |
|
Ok, thanks. I'll re-open it then so that we remember to do something about it (especially trying to get this in the automated build) |
|
Thanks @basvodde |
|
We've been building with msys2 in CI for months. Are we sure this is still a problem? cpputest/.github/workflows/basic.yml Line 386 in df7e2a9 |
Cpputest has been recently added to msys2 but unfortunately when I build my project under msys2 I got the following issue, which is fixed with this patch: