Skip to content

Commit fcfb90e

Browse files
committed
Initial support of flang
1 parent 06b8eb8 commit fcfb90e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cmake/modules/clang.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
4242

4343
if(HAVE_FORTRAN)
4444
# we associate clang with the gnu fortran compiler
45-
if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "IntelLLVM")
45+
if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "LLVMFlang")
46+
set(LLVM_FORTRAN_COMPILER ON)
47+
elseif("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "IntelLLVM")
4648
set(INTEL_FORTRAN_COMPILER ON)
4749
else()
4850
include(cmake/modules/gnu-fortran-compiler.cmake)

cmake/modules/compiler.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,3 @@ if(NOT USE_EXTERNAL_COMPILER_FLAGS)
187187
endif(NOT enable-portable-build)
188188
endif(CMAKE_BUILD_TYPE STREQUAL "Profiling")
189189
endif(NOT USE_EXTERNAL_COMPILER_FLAGS)
190-

0 commit comments

Comments
 (0)