8000 SetupCompilerOptions erroneously classifies "CrayClang" as "Clang" · Issue #699 · LLNL/blt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
SetupCompilerOptions erroneously classifies "CrayClang" as "Clang" #699
Open
@wrtobin

Description

@wrtobin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0