Skip to content

Commit

Permalink
fix FLANG lib path
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrichet-irsn committed Aug 21, 2023
1 parent 067e5e1 commit 26fce15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ endif

USE_FLANG=$(shell echo $(FC) | egrep "flang")
ifneq ($(USE_FLANG),)
FLANG_LIB=$(shell $(FC) --help | egrep "InstalledDir" | cut -d: -f2 | tr -d ' ')
FLIBS=-L$(FLANG_LIB)/../lib -lFortran_main -lFortranRuntime -lFortranDecimal -lm
LLVM_PATH=$(shell $(USE_FLANG) --version | egrep "InstalledDir" | cut -d: -f2 | tr -d ' ')
FLIBS=-L$(LLVM_PATH)/../lib -lFortran_main -lFortranRuntime -lFortranDecimal -lm
$(info Use FLANG with FLIBS: $(FLIBS))
endif

EXTERNAL_LIBS=$(shell LIBKRIGING_PATH=${LIBKRIGING_PATH} ../src/libK/bindings/R/tools/ExternalLibsExtractor.sh)
Expand Down

0 comments on commit 26fce15

Please sign in to comment.