Skip to content

Commit

Permalink
Merge pull request #951 from scrtlabs/localsecret-support-old-cpus
Browse files Browse the repository at this point in the history
Support old CPUs in `SGX_MODE=SW`
  • Loading branch information
assafmo authored Jul 12, 2022
2 parents f4375c1 + 8dfc1f8 commit a6071fa
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cosmwasm/enclaves/execute/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Rust_Crate_Source := $(shell find -type f | grep -vP '(\.so|\.o|\.a)$$' | grep -
Rust_Target_Path := $(CURDIR)/../xargo

ifeq ($(SGX_MODE), SW)
Rust_Flags := "-Z force-unstable-if-unmarked -C target-feature=+aes,+ssse3"
Rust_Flags := "-Z force-unstable-if-unmarked"
else
Rust_Flags := "-Z force-unstable-if-unmarked -C target-cpu=skylake"
endif
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/enclaves/query/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Rust_Crate_Source := $(shell find -type f | grep -vP '(\.so|\.o|\.a)$$' | grep -
Rust_Target_Path := $(CURDIR)/../xargo

ifeq ($(SGX_MODE), SW)
Rust_Flags := "-Z force-unstable-if-unmarked -C target-feature=+aes,+ssse3"
Rust_Flags := "-Z force-unstable-if-unmarked"
else
Rust_Flags := "-Z force-unstable-if-unmarked -C target-cpu=skylake"
endif
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/enclaves/shared/contract-engine/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SGX_MODE ?= HW

ifeq ($(SGX_MODE), SW)
Rust_Flags := "-Z force-unstable-if-unmarked -C target-feature=+aes,+ssse3"
Rust_Flags := "-Z force-unstable-if-unmarked"
else
Rust_Flags := "-Z force-unstable-if-unmarked -C target-cpu=skylake"
endif
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/enclaves/shared/cosmos-types/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SGX_MODE ?= HW

ifeq ($(SGX_MODE), SW)
Rust_Flags := "-Z force-unstable-if-unmarked -C target-feature=+aes,+ssse3"
Rust_Flags := "-Z force-unstable-if-unmarked"
else
Rust_Flags := "-Z force-unstable-if-unmarked -C target-cpu=skylake"
endif
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/enclaves/shared/cosmwasm-types/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SGX_MODE ?= HW

ifeq ($(SGX_MODE), SW)
Rust_Flags := "-Z force-unstable-if-unmarked -C target-feature=+aes,+ssse3"
Rust_Flags := "-Z force-unstable-if-unmarked"
else
Rust_Flags := "-Z force-unstable-if-unmarked -C target-cpu=skylake"
endif
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/enclaves/shared/crypto/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SGX_MODE ?= HW

ifeq ($(SGX_MODE), SW)
Rust_Flags := "-Z force-unstable-if-unmarked -C target-feature=+aes,+ssse3"
Rust_Flags := "-Z force-unstable-if-unmarked"
else
Rust_Flags := "-Z force-unstable-if-unmarked -C target-cpu=skylake"
endif
Expand Down
2 changes: 1 addition & 1 deletion cosmwasm/enclaves/shared/utils/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SGX_MODE ?= HW

ifeq ($(SGX_MODE), SW)
Rust_Flags := "-Z force-unstable-if-unmarked -C target-feature=+aes,+ssse3"
Rust_Flags := "-Z force-unstable-if-unmarked"
else
Rust_Flags := "-Z force-unstable-if-unmarked -C target-cpu=skylake"
endif
Expand Down

0 comments on commit a6071fa

Please sign in to comment.