Merge pull request #2445 from atn34/atn34/disable-sse

Disable alignment-requiring instructions until #1434 is resolved
This commit is contained in:
A.J. Beamon 2019-12-11 14:37:57 -08:00 committed by GitHub
commit 7593b97391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 6 deletions

View File

@ -156,6 +156,7 @@ else()
if(USE_UBSAN)
add_compile_options(
-fsanitize=undefined
# TODO(atn34) Re-enable -fsanitize=alignment once https://github.com/apple/foundationdb/issues/1434 is resolved
-fno-sanitize=alignment
-DUSE_SANITIZER)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fsanitize=undefined")
@ -174,12 +175,15 @@ else()
add_link_options(-static-libstdc++ -static-libgcc)
endif()
endif()
# Instruction sets we require to be supported by the CPU
add_compile_options(
-maes
-mmmx
-mavx
-msse4.2)
# # Instruction sets we require to be supported by the CPU
# TODO(atn34) Re-enable once https://github.com/apple/foundationdb/issues/1434 is resolved
# Some of the following instructions have alignment requirements, so it seems
# prudent to disable them until we properly align memory.
# add_compile_options(
# -maes
# -mmmx
# -mavx
# -msse4.2)
if (USE_VALGRIND)
add_compile_options(-DVALGRIND -DUSE_VALGRIND)