Disable alignment-requiring instructions until is resolved

This commit is contained in:
Andrew Noyes 2019-12-05 15:11:10 -08:00
parent c75b7f63c9
commit 991733a7fb
1 changed files with 10 additions and 6 deletions

View File

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