File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 11# ####### LCP Build Settings ########
22ZK_PROVER_CUDA ?= 0
33APP_CARGO_FLAGS ?=
4+ DEBUG ?= 0
5+ OUTPUT_PATH := release
6+ CARGO_TARGET := --release
47
58# ####### SGX SDK Settings ########
69SGX_SDK ?= /opt/sgxsdk
710SGX_MODE ?= HW
8- SGX_DEBUG ?= 0
911SGX_ENCLAVE_CONFIG ?= "enclave/Enclave.config.xml"
1012SGX_SIGN_KEY ?= "enclave/Enclave_private.pem"
1113
@@ -16,16 +18,13 @@ SGX_EDGER8R := $(SGX_SDK)/bin/x64/sgx_edger8r
1618
1719include buildenv.mk
1820
19- ifeq ($(SGX_DEBUG ) , 1)
20- # we build with cargo --release, even in SGX DEBUG mode
21+ ifeq ($(DEBUG ) , 1)
2122 SGX_COMMON_CFLAGS += -O0 -g -ggdb
22- # cargo sets this automatically, cannot use ' debug'
23- OUTPUT_PATH := release
24- CARGO_TARGET := --release
23+ OUTPUT_PATH := debug
24+ CARGO_TARGET :=
25+ export SGX_DEBUG = 1
2526else
2627 SGX_COMMON_CFLAGS += -O2
27- OUTPUT_PATH := release
28- CARGO_TARGET := --release
2928endif
3029
3130SGX_COMMON_CFLAGS += -fstack-protector
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ enclave.so
44 g_global_data_sim;
55 g_global_data;
66 enclave_entry;
7+ g_peak_heap_used;
8+ g_peak_rsrv_mem_committed;
79 local :
810 *;
911};
You can’t perform that action at this time.
0 commit comments