blob: d38cf1c3c3cce04e92fbe82b310cf56c4c42d794 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/components/sysdetect/tests/Makefile b/src/components/sysdetect/tests/Makefile
index 63ac01358..79ce57e4b 100644
--- a/src/components/sysdetect/tests/Makefile
+++ b/src/components/sysdetect/tests/Makefile
@@ -21,11 +21,9 @@ endif
intel_compilers := ifort ifx
cray_compilers := ftn crayftn
-FFLAGS += -ffree-form
-
ifeq ($(notdir $(F77)),gfortran)
FFLAGS +=-ffree-form -ffree-line-length-none
-else ifeq ($(notdir $(F77)),flang)
+else ifeq ($(patsubst %flang,,$(notdir $(F77))),) # compiler name ends with flang
FFLAGS +=-ffree-form
else ifneq ($(findstring $(notdir $(F77)), $(intel_compilers)),)
FFLAGS +=-free
|