diff --git a/samplecode/sgx-cov/enclave/Makefile b/samplecode/sgx-cov/enclave/Makefile index d5fc3a773..30816cb4f 100644 --- a/samplecode/sgx-cov/enclave/Makefile +++ b/samplecode/sgx-cov/enclave/Makefile @@ -29,7 +29,7 @@ ifneq ($(COV),) # Debug build + coverage collection COV_FLAGS = CARGO_INCREMENTAL=0 \ RUSTFLAGS="-D warnings -Zprofile -Ccodegen-units=1 \ -Cllvm_args=-inline-threshold=0 -Clink-dead-code \ - -Coverflow-checks=off -Zno-landing-pads" + -Coverflow-checks=off -Cpanic=abort" WRAPPER = "./enclave-cov-rustc" endif diff --git a/samplecode/sgx-cov/enclave/enclave-cov-rustc b/samplecode/sgx-cov/enclave/enclave-cov-rustc index 0e9a9a2c3..5858fc41b 100755 --- a/samplecode/sgx-cov/enclave/enclave-cov-rustc +++ b/samplecode/sgx-cov/enclave/enclave-cov-rustc @@ -2,7 +2,7 @@ COV_RUSTFLAGS="-Zprofile -Ccodegen-units=1 \ -Cllvm_args=-inline-threshold=0 -Clink-dead-code \ - -Coverflow-checks=off -Zno-landing-pads" + -Coverflow-checks=off -Cpanic=abort" get_crate_name() {