Skip to content

Commit 7364ed9

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

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

fortran/examples/Makefile.common

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ FFORT := "$(shell find -L /usr/local/llvm* /usr/lib/llvm* /opt/homebrew /usr/loc
2222
ifeq ($(FFORT),"") # The quotation marks are necessary
2323
FFORT := "$(shell command -v flang)"
2424
endif
25-
# On Windows, we need to specify the --resource-dir
25+
# On Windows, we need to specify the clang_rt.
2626
ifeq ($(OS),Windows_NT)
27-
CLANGRT := "$(shell find "/c/Program Files/LLVM" -name "clang_rt.builtins*" 2>/dev/null)"
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.
2829
FFORT := $(FFORT) $(CLANGRT)
2930
endif
3031
# On macOS, we need to link against the system libraries.

0 commit comments

Comments
 (0)