Skip to content

Commit

Permalink
Merge pull request #4304 from martin-frbg/issue4277
Browse files Browse the repository at this point in the history
Move clang/gfortran OpenMP dependency rewriting out of f_check
  • Loading branch information
martin-frbg authored Nov 11, 2023
2 parents cad10a3 + 1a308a0 commit 9c3c1cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ endif

ifeq ($(C_COMPILER), CLANG)
CCOMMON_OPT += -fopenmp
ifeq ($(F_COMPILER), GFORTRAN)
FEXTRALIB := $(subst -lgomp,-lomp,$(FEXTRALIB))
endif
endif

ifeq ($(C_COMPILER), INTEL)
Expand Down
7 changes: 0 additions & 7 deletions f_check
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,6 @@ if [ -n "$link" ]; then
;;
esac

case "$flag" in *-lgomp*)
case "$CC" in *clang*)
flag="-lomp"
;;
esac
esac

case "$flag" in -l*)
case "$flag" in
*ibrary*|*gfortranbegin*|*flangmain*|*frtbegin*|*pathfstart*|\
Expand Down

0 comments on commit 9c3c1cf

Please sign in to comment.