Skip to content
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

SetupCompilerOptions erroneously classifies "CrayClang" as "Clang" #699

Open
wrtobin opened this issue Sep 10, 2024 · 0 comments
Open

SetupCompilerOptions erroneously classifies "CrayClang" as "Clang" #699

wrtobin opened this issue Sep 10, 2024 · 0 comments

Comments

@wrtobin
Copy link

wrtobin commented Sep 10, 2024

CMake provides "CrayClang" as a compiler ID for the C and CXX Cray compilers based on Clang:

https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html

SetupCompilerOptions uses matches for Clang to match both Clang and AppleClang:

elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # For Clang or AppleClang

This causes BLT to erroneously classify CrayClang C and CrayClang CXX as Clang mainline rather than CrayClang.

This results in situations like this:

-- The Fortran compiler identification is Cray 18.0.0
-- The C compiler identification is Clang 18.1.6
-- The CXX compiler identification is Clang 18.1.6

When specifying the cray clang compilers in cmake for CMAKE_C_COMPILER and CMAKE_CXX_COMPILER.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant