summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJianlin Lv <Jianlin.Lv@arm.com>2019-06-27 13:50:30 +0800
committerDamjan Marion <dmarion@me.com>2019-08-19 10:38:35 +0000
commit416e32cf9292b899cbed28ec29836517eb942206 (patch)
tree84604e7b31cfa9f96ca501485893047eea0f3b94 /src
parentc9122f97398b11f8be0256901a0cbd83dc3b6511 (diff)
build: fix vpp compilation failure on ThunderX2 and Amp
fix compile issue that caused by enabling "-mtune=thunderx2t99" flag during compilation, such as "/opt/vpp-agent/dev/vpp/src/vnet/interface_stats.c:164:1: internal compiler error: Segmentation fault" Type: fix Change-Id: Iaf9f80a6c203a7e5b6a40523f14a62bb37091c92 Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmake/cpu.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmake/cpu.cmake b/src/cmake/cpu.cmake
index e586ecc523c..1dd483457e9 100644
--- a/src/cmake/cpu.cmake
+++ b/src/cmake/cpu.cmake
@@ -76,7 +76,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)")
endif()
check_c_compiler_flag("-march=armv8.1-a+crc+crypto -mtune=thunderx2t99" compiler_flag_march_thunderx2t99)
if(compiler_flag_march_thunderx2t99)
- if (CMAKE_C_COMPILER_VERSION VERSION_GREATER 7.3)
+ if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.3)
list(APPEND MARCH_VARIANTS "thunderx2t99\;-march=armv8.1-a+crc+crypto -mtune=thunderx2t99 -DCLIB_N_PREFETCHES=8")
else()
list(APPEND MARCH_VARIANTS "thunderx2t99\;-march=armv8.1-a+crc+crypto -DCLIB_N_PREFETCHES=8")