Skip to content

Commit

Permalink
Fix sgx_epid linking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
iKapitonau committed Nov 6, 2024
1 parent 035f58c commit 4a2e491
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions go-cosmwasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ build: build-rust build-go

.PHONY: build-rust
build-rust: build-enclave
if [[ $(SGX_MODE) == HW ]]; then \
sed -i 's/sgx_epid_sim/sgx_epid/' ./api/link_std.go; \
else \
sed -i 's/sgx_epid$$/sgx_epid_sim/' ./api/link_std.go; \
fi;
@if [ $(SGX_MODE) = SW ]; then sed -i 's/-lsgx_epid$$//' ./api/link_std.go; fi
cargo build -Z unstable-options --profile $(BUILD_PROFILE) --features "$(FEATURES_U)"
cp target/$(BUILD_PROFILE)/libgo_cosmwasm.$(DLL_EXT) api
@ #this pulls out ELF symbols, 80% size reduction!
Expand Down

0 comments on commit 4a2e491

Please sign in to comment.