From bec8106a7cd4225cec4b14847574c8e09a2a1b5b Mon Sep 17 00:00:00 2001 From: Mingshen Sun Date: Tue, 2 Jun 2020 15:40:56 -0700 Subject: [PATCH] [cmake] Remove -Zno-landing-pads in RUSTFLAGS for coverage This will cause failure of catch_unwind in current toolchain. --- cmake/TeaclaveGenVars.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/TeaclaveGenVars.cmake b/cmake/TeaclaveGenVars.cmake index d50c3b293..006af9a7e 100644 --- a/cmake/TeaclaveGenVars.cmake +++ b/cmake/TeaclaveGenVars.cmake @@ -77,7 +77,7 @@ else() set(SGX_ENCLAVE_FEATURES -Z package-features --features "mesalock_sgx cov") set(CARGO_INCREMENTAL 0) set(RUSTFLAGS "${RUSTFLAGS} -D warnings -Zprofile -Ccodegen-units=1 \ --Cllvm_args=-inline-threshold=0 -Coverflow-checks=off -Zno-landing-pads") +-Cllvm_args=-inline-threshold=0 -Coverflow-checks=off") endif() endif()