mirror of https://github.com/google/oss-fuzz.git
[boringssl] disabling asm when building with msan.
@kcc @davidben
Followup to ef490bc147
This commit is contained in:
parent
ef490bc147
commit
b2c382d1d3
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue