Skip to content

Commit

Permalink
Remove unneeded rust hacks after #3830. (#3840)
Browse files Browse the repository at this point in the history
  • Loading branch information
inferno-chromium authored May 18, 2020
1 parent 9c53cc3 commit bc45406
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
12 changes: 0 additions & 12 deletions projects/mp4parse-rust/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions projects/serde_json/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
12 changes: 0 additions & 12 deletions projects/wasmtime/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc45406

Please sign in to comment.