From 56c599380785cea9af88f4971fb8f82338088db5 Mon Sep 17 00:00:00 2001 From: volcano Date: Mon, 3 Aug 2020 19:28:20 +0800 Subject: [PATCH] Fix no-landing-pads error --- samplecode/sgx-cov/enclave/Makefile | 2 +- samplecode/sgx-cov/enclave/enclave-cov-rustc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {