diff options
author | Alex Crichton <alex@alexcrichton.com> | 2020-02-01 00:02:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 15:02:20 -0800 |
commit | c2fa07a0956bcfebf2b70b5df13f5ed4c4d7c7e5 (patch) | |
tree | da1750db1b9b44f18a7e057a0a86de9a327801de /projects/wasmtime | |
parent | f2588ea5a8687dffe6f86eba837d7348876d5aaf (diff) | |
download | oss-fuzz-c2fa07a0956bcfebf2b70b5df13f5ed4c4d7c7e5.tar.gz |
wasmtime: Enable debuginfo/frame pointers (#3314)
This commit does for Rust code what the `CFLAGS` are configured to do
for C++ code, which is to enable debuginfo (but line tables only) as
well as forcing frame pointer generation to all assist in generating
stack traces.
Diffstat (limited to 'projects/wasmtime')
-rwxr-xr-x | projects/wasmtime/build.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/projects/wasmtime/build.sh b/projects/wasmtime/build.sh index 314f14a5d..82fbaace2 100755 --- a/projects/wasmtime/build.sh +++ b/projects/wasmtime/build.sh @@ -27,6 +27,7 @@ PROJECT_DIR=$SRC/wasmtime 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 |