Skip to content

Commit

Permalink
changed gcc version check condition from 'ifeq' to 'if greater or equal'
Browse files Browse the repository at this point in the history
Change-Id: Ie4c461867829bcc113210791bbefb9517e52c226
  • Loading branch information
Meghana-vankadari committed Jul 24, 2019
1 parent c9486e0 commit fdce1a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/zen2/make_defs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ AMD_CONFIG_PATH := $(BASE_SHARE_PATH)/config/zen
# Flags specific to optimized kernels.
ifeq ($(CC_VENDOR),gcc)
# gcc 9.0 (clang ?) or later:
ifeq ($(strip $(shell gcc -dumpversion)),9)
GCC_VERSION := $(strip $(shell gcc -dumpversion))
ifeq ($(shell test $(GCC_VERSION) -ge 9; echo $$?),0)
CKVECFLAGS += -march=znver2
# gcc 6.0 (clang 4.0) or later:
else
Expand Down

0 comments on commit fdce1a5

Please sign in to comment.