Skip to content

Commit 20f492c

Browse files
authored
Fix AMD AOCC compiler detection
1 parent 93843c5 commit 20f492c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.system

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,8 @@ CCOMMON_OPT += -DF_INTERFACE_FLANG
904904
FCOMMON_OPT += -Mrecursive -Kieee
905905
ifeq ($(OSNAME), Linux)
906906
ifeq ($(ARCH), x86_64)
907-
FLANG_VENDOR := $(shell `$(FC) --version|cut -f 1 -d "."|head -1`)
908-
ifeq ($(FLANG_VENDOR),AOCC)
907+
FLANG_VENDOR := $(shell $(FC) --version|head -1 |cut -f 1 -d " ")
908+
ifeq ($(FLANG_VENDOR), AMD)
909909
FCOMMON_OPT += -fno-unroll-loops
910910
endif
911911
endif

0 commit comments

Comments
 (0)