-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CMake: Check for known bad configurations with LLVM Flang #4180
base: develop
Are you sure you want to change the base?
Conversation
Updated the PR and rebased on a current head. |
Any update with flang-18.1? |
All tests pass with flang-18 |
avx512 too ? |
I don't know, I haven't passed NO_AVX512 to cmake and It builds (after applying #4616) and all tests pass. |
I see - actually passing the tests on an avx512 cpu used to be the problem with recent llvm, but I will probably not get to recheck this before monday |
Some features either don't compile or don't work correctly with LLVM Flang before version 17.
This PR tries to help users to avoid these known-bad configurations by emitting a message and adapting the corresponding flags.
It's still unclear if both of these known-bad configurations will actually be fixed in LLVM Flang 17 or if one of them is actually an issue that is platform-dependent (i.e., only Windows or MinGW). In the latter case, the conditions could still be adapted in the future.
The flags need to be adapted early on. At least, before
system_check.cmake
is included viasystem.cmake
. That required to move the check for the Fortran compiler to earlier in the configuration process.