Skip to content

Commit

Permalink
The LLVM based Intel C compiler (icx) does not support the -cxxlib
Browse files Browse the repository at this point in the history
option. Separate out Fortran side options to support icc and icx for
pure C linkage.
  • Loading branch information
theurich committed Dec 10, 2022
1 parent 485497f commit 83715a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build_config/Linux.intel.default/build_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ ESMF_F90LINKPATHS +=
############################################################
# Link against libesmf.a using the F90 linker front-end
#
ESMF_F90LINKLIBS += -cxxlib -lrt -ldl
ESMF_F90LINKOPTS += -cxxlib
ESMF_F90LINKLIBS += -lrt -ldl

############################################################
# Link against libesmf.a using the C++ linker front-end
Expand Down
3 changes: 2 additions & 1 deletion build_config/Unicos.intel.default/build_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ ESMF_F90LINKPATHS +=
############################################################
# Link against libesmf.a using the F90 linker front-end
#
ESMF_F90LINKLIBS += -cxxlib -lrt -ldl
ESMF_F90LINKOPTS += -cxxlib
ESMF_F90LINKLIBS += -lrt -ldl

############################################################
# Link against libesmf.a using the C++ linker front-end
Expand Down

0 comments on commit 83715a0

Please sign in to comment.