Fix AMD AOCC compiler detection
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Mon, 1 Mar 2021 20:00:10 +0000 (21:00 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Mar 2021 20:00:10 +0000 (21:00 +0100)
Makefile.system

index 848c387..91a0785 100644 (file)
@@ -904,8 +904,8 @@ CCOMMON_OPT += -DF_INTERFACE_FLANG
 FCOMMON_OPT += -Mrecursive -Kieee
 ifeq ($(OSNAME), Linux)
 ifeq ($(ARCH), x86_64)
-FLANG_VENDOR := $(shell `$(FC) --version|cut -f 1 -d "."|head -1`)
-ifeq ($(FLANG_VENDOR),AOCC)
+FLANG_VENDOR := $(shell $(FC) --version|head -1 |cut -f 1 -d " ")
+ifeq ($(FLANG_VENDOR), AMD)
 FCOMMON_OPT += -fno-unroll-loops
 endif
 endif