Fix CROSS_COMPILE_AARCH64 for SVE issues.

Change-Id: I7b9ba3ccb754d96eee22ca01714c783dae1e4956
This commit is contained in:
George Wort 2021-07-12 17:08:11 +01:00 committed by Konstantinos Margaritis
parent 9fb79ac3ec
commit 4bc28272da
2 changed files with 1 additions and 4 deletions

View File

@ -184,7 +184,7 @@ else()
string(REGEX REPLACE "-O[^ ]*" "" CMAKE_CXX_FLAGS_${CONFIG} "${CMAKE_CXX_FLAGS_${CONFIG}}")
endforeach ()
if (CMAKE_COMPILER_IS_GNUCC)
if (CMAKE_COMPILER_IS_GNUCC AND NOT CROSS_COMPILE_AARCH64)
message(STATUS "gcc version ${CMAKE_C_COMPILER_VERSION}")
# If gcc doesn't recognise the host cpu, then mtune=native becomes
# generic, which isn't very good in some cases. march=native looks at

View File

@ -37,7 +37,6 @@
#include "util/arch.h"
#include "util/bitutils.h"
#if !defined(HAVE_SVE)
#include "truffle_simd.hpp"
const u8 *truffleExec(m128 mask_lo, m128 mask_hi, const u8 *buf,
@ -49,5 +48,3 @@ const u8 *rtruffleExec(m128 mask_lo, m128 mask_hi, const u8 *buf,
const u8 *buf_end) {
return rtruffleExecReal<VECTORSIZE>(mask_lo, mask_hi, buf, buf_end);
}
#endif