-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add support for building with Mingw-gcc #17
Conversation
What is the issue with external only TUs? I've never heard of it. Any link? |
It's a known issue and I'm still working on a solution. It's only a problem with clang. GCC does not have this issue :( |
So far I only got it locally building with clang if I remove the |
Well this is not a good solution because it will force rebuilding of all sources from scratch on every commit (even CCache won't speed it up). Isolation of the change to a single file, From your links I see that initializing the external definition helps the people with this problem. But here |
I forgot to add "and removing its initialization from version.cpp" |
One relatively clean solution would be to turn this constant into a function: |
Yes. I'm turning it into a function. After your comment about CCache, converting it into a function came to my mind |
fe14f73
to
d94bc6e
Compare
I'm at a loss. Even after the conversion to a function above, now I'm getting:
But only with clang! gcc and msvc ware linking correctly, grr |
What if you avoid |
Same thing, removing |
Interestingly, I experience no problem whatsoever when building with clang 10.0.0-4ubuntu1 on Ubuntu 20.04, even with the current |
I'm using 17.0.1 from MSYS2 I'm targeting |
Well, what if you populate |
I already did that, (well, not called clang_dymmy). you'll have to refresh this PR |
No, I mean, your |
The original PR was also failing with the |
Well, this you didn't mention :) |
d94bc6e
to
90083ff
Compare
Ok. I've changed the title. Let's chew one thing at a time. I'll start working on the MSYS2 recipe for this project. INDIlib is next. |
Here we go msys2/MINGW-packages#18697 |
@10110111 where can I download .atmo files to test ShowMySky.exe ? |
|
Ah, wait, it's for CalcMySky. For ShowMySky you can download the earth atmosphere model in the release assets list. |
Tune CMakeLists to use the right compiler switches when using MINGW