Remove unneeded rust hacks after #3830. (#3840)

This commit is contained in:
Abhishek Arya 2020-05-18 08:04:26 -07:00 committed by GitHub
parent 9c53cc323a
commit bc45406906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 34 deletions

View File

@ -16,19 +16,7 @@
################################################################################
# Note: This project creates Rust fuzz targets exclusively
export CUSTOM_LIBFUZZER_PATH="$LIB_FUZZING_ENGINE_DEPRECATED"
export CUSTOM_LIBFUZZER_STD_CXX=c++
PROJECT_DIR=$SRC/mp4parse-rust
# Because Rust does not support sanitizers via CFLAGS/CXXFLAGS, the environment
# variables are overridden with values from base-images/base-clang only
export CFLAGS="-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
export CXXFLAGS_EXTRA="-stdlib=libc++"
export CXXFLAGS="$CFLAGS $CXXFLAGS_EXTRA"
export RUSTFLAGS="-Cdebuginfo=1 -Cforce-frame-pointers"
cd $PROJECT_DIR/mp4parse_capi/fuzz && cargo fuzz build -O --debug-assertions
mkdir $PROJECT_DIR/corpus

View File

@ -16,16 +16,6 @@
################################################################################
# Note: This project creates Rust fuzz targets exclusively
export CUSTOM_LIBFUZZER_PATH="$LIB_FUZZING_ENGINE_DEPRECATED"
export CUSTOM_LIBFUZZER_STD_CXX=c++
# Because Rust does not support sanitizers via CFLAGS/CXXFLAGS, the environment
# variables are overridden with values from base-images/base-clang only
export CFLAGS="-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
export CXXFLAGS_EXTRA="-stdlib=libc++"
export CXXFLAGS="$CFLAGS $CXXFLAGS_EXTRA"
export RUSTFLAGS="-Cdebuginfo=1 -Cforce-frame-pointers"
cd $SRC/json
cargo fuzz build -O
cp fuzz/target/x86_64-unknown-linux-gnu/release/from_slice $OUT/

View File

@ -16,19 +16,7 @@
################################################################################
# Note: This project creates Rust fuzz targets exclusively
export CUSTOM_LIBFUZZER_PATH="$LIB_FUZZING_ENGINE_DEPRECATED"
export CUSTOM_LIBFUZZER_STD_CXX=c++
PROJECT_DIR=$SRC/wasmtime
# Because Rust does not support sanitizers via CFLAGS/CXXFLAGS, the environment
# variables are overridden with values from base-images/base-clang only
export CFLAGS="-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
export CXXFLAGS_EXTRA="-stdlib=libc++"
export CXXFLAGS="$CFLAGS $CXXFLAGS_EXTRA"
export RUSTFLAGS="-Cdebuginfo=1 -Cforce-frame-pointers"
cd $PROJECT_DIR/fuzz && cargo fuzz build -O --debug-assertions --features binaryen
FUZZ_TARGET_OUTPUT_DIR=$PROJECT_DIR/target/x86_64-unknown-linux-gnu/release