[boringssl] disabling asm when building with msan.

@kcc @davidben

Followup to ef490bc147
This commit is contained in:
Mike Aizatsky 2017-02-08 13:47:40 -08:00
parent ef490bc147
commit b2c382d1d3
1 changed files with 9 additions and 2 deletions

View File

@ -21,11 +21,18 @@ cd $WORK/boringssl
CFLAGS="$CFLAGS -DBORINGSSL_UNSAFE_FUZZER_MODE"
CXXFLAGS="$CXXFLAGS -DBORINGSSL_UNSAFE_FUZZER_MODE"
CMAKE_DEFINES=""
if [[ $SANITIZER_FLAGS = *sanitize=memory* ]]
then
CMAKE_DEFINES="-DOPENSSL_NO_ASM=1"
fi
cmake -GNinja -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
-DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
$SRC/boringssl/
-DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
$CMAKE_DEFINES $SRC/boringssl/
ninja
fuzzerFiles=$(find $SRC/boringssl/fuzz/ -name "*.cc")
find . -name "*.a"