Skip to content

Commit 8de8544

Browse files
committed
Fix CC_VENDOR for Ubuntu wrapped gcc
1 parent 85bbdf9 commit 8de8544

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ V ?= $(VERBOSE)
107107
AFLAGS ?= -fsanitize=address #-fsanitize=undefined -fno-omit-frame-pointer
108108

109109
# Note: Intel oneAPI C/C++ compiler is now icx/icpx
110-
CC_VENDOR := $(firstword $(filter gcc (GCC) clang icc icc_orig oneAPI XL emcc,$(subst -, ,$(shell $(CC) --version))))
110+
CC_VENDOR := $(firstword $(filter gcc (GCC) clang cc icc icc_orig oneAPI XL emcc,$(subst -, ,$(shell $(CC) --version))))
111111
CC_VENDOR := $(subst (GCC),gcc,$(subst icc_orig,icc,$(CC_VENDOR)))
112+
CC_VENDOR := $(if $(filter cc,$(CC_VENDOR)),gcc,$(CC_VENDOR))
112113
FC_VENDOR := $(if $(FC),$(firstword $(filter GNU ifort ifx XL,$(shell $(FC) --version 2>&1 || $(FC) -qversion))))
113114

114115
# Default extra flags by vendor

0 commit comments

Comments
 (0)