diff options
author | William R. Dieter <william.r.dieter@intel.com> | 2020-11-03 01:11:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-28 14:05:35 (GMT) |
commit | a90d2a9eed202b58b72776f9beb0569e92c90d21 (patch) | |
tree | afddec15f77981ca45cc32a56602dff010767535 /Modules/CMakeDetermineFortranCompiler.cmake | |
parent | 9bef4bef0fbe69825f9103365a89be4696b6e1d0 (diff) | |
download | CMake-a90d2a9eed202b58b72776f9beb0569e92c90d21.zip CMake-a90d2a9eed202b58b72776f9beb0569e92c90d21.tar.gz CMake-a90d2a9eed202b58b72776f9beb0569e92c90d21.tar.bz2 |
IntelLLVM: Add support for Intel LLVM-based compilers
Using a single ID 'IntelLLVM' for the suite of Intel compilers based on
the LLVM backend. The 'IntelLLVM' ID are used for C, C++, and Fortran.
Data Parallel C++ will be handled in a separate commit.
The C and C++ definitions are based on the Clang definitions. The Intel
LLVM-based C and C++ compilers are based on the Clang front end, so
existing Clang options are more likely to be a good match than options
for the older Intel compilers.
Fortran is based on the older Fortran front end with the LLVM backend.
It has a similar interface to the older versions, though many options
are shared with the C and C++ compilers.
Fixes: #21561
Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Modules/CMakeDetermineFortranCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineFortranCompiler.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake index 8a57408..d7d032c 100644 --- a/Modules/CMakeDetermineFortranCompiler.cmake +++ b/Modules/CMakeDetermineFortranCompiler.cmake @@ -59,6 +59,8 @@ else() # af77: Apogee F77 compiler for Intergraph hardware running CLIX # epcf90: "Edinburgh Portable Compiler" F90 # fort: Compaq (now HP) Fortran 90/95 compiler for Tru64 and Linux/Alpha + # ifx: Intel Fortran LLVM-based compiler + # ifort: Intel Classic Fortran compiler # ifc: Intel Fortran 95 compiler for Linux/x86 # efc: Intel Fortran 95 compiler for IA64 # nagfor: NAG Fortran compiler @@ -68,14 +70,14 @@ else() # so if you paid for a compiler it is picked by default. if(CMAKE_HOST_WIN32) set(CMAKE_Fortran_COMPILER_LIST - ifort pgf95 pgfortran lf95 fort + ifort ifx pgf95 pgfortran lf95 fort flang gfortran gfortran-4 g95 f90 pgf90 pgf77 g77 f77 nag ) else() set(CMAKE_Fortran_COMPILER_LIST ftn - ifort ifc efc pgf95 pgfortran lf95 xlf95 fort + ifort ifc ifx efc pgf95 pgfortran lf95 xlf95 fort flang gfortran gfortran-4 g95 f90 pgf90 frt pgf77 xlf g77 f77 nag ) @@ -83,7 +85,7 @@ else() # Vendor-specific compiler names. set(_Fortran_COMPILER_NAMES_GNU gfortran gfortran-4 g95 g77) - set(_Fortran_COMPILER_NAMES_Intel ifort ifc efc) + set(_Fortran_COMPILER_NAMES_Intel ifort ifc efc ifx) set(_Fortran_COMPILER_NAMES_Absoft af95 af90 af77) set(_Fortran_COMPILER_NAMES_PGI pgf95 pgfortran pgf90 pgf77) set(_Fortran_COMPILER_NAMES_Flang flang) |