Skip to content

Commit ddd76ae

Browse files
committed
260302.012428.CST [skip ci] revise Makefile.common
1 parent 7364ed9 commit ddd76ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fortran/examples/Makefile.common

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ ifeq ($(FFORT),"") # The quotation marks are necessary
2424
endif
2525
# On Windows, we need to specify the clang_rt.
2626
ifeq ($(OS),Windows_NT)
27-
ARCH := $(shell uname -m)
28-
CLANGRT := "$(shell find "/c/Program Files/LLVM" -name "clang_rt.builtins*$(ARCH)" 2>/dev/null)" # Note the quotation marks to handle spaces in the path.
27+
ARCH := $(shell $(FFORT) -dumpmachine | cut -d- -f)
28+
CLANGRT := "$(shell find "/c/Program Files/LLVM" -name "clang_rt.builtins*$(ARCH)*" 2>/dev/null)" # Note the quotation marks to handle spaces in the path.
2929
FFORT := $(FFORT) $(CLANGRT)
3030
endif
3131
# On macOS, we need to link against the system libraries.

0 commit comments

Comments
 (0)