Fix no-landing-pads error
diff --git a/samplecode/sgx-cov/enclave/Makefile b/samplecode/sgx-cov/enclave/Makefile
index d5fc3a7..30816cb 100644
--- a/samplecode/sgx-cov/enclave/Makefile
+++ b/samplecode/sgx-cov/enclave/Makefile
@@ -29,7 +29,7 @@
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 0e9a9a2..5858fc4 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()
{