Skip to content

Commit

Permalink
Merge pull request #685 from input-output-hk/jpraynaud/fix-make-build…
Browse files Browse the repository at this point in the history
…-portable

Fix make build portable
  • Loading branch information
jpraynaud authored Jan 16, 2023
2 parents a3ddd04 + fd53804 commit 95a102a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mithril-aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ slog-term = "2.9.0"
tempfile = "3.3.0"

[features]
portable = ["mithril-common/portable"]
portable = ["mithril-common/portable"] # portable feature avoids SIGILL crashes on CPUs not supporting Intel ADX instruction set when built on CPUs that support it
3 changes: 2 additions & 1 deletion mithril-aggregator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CARGO = cargo
all: test build

build:
${CARGO} build --release
# We use 'portable' feature to avoid SIGILL crashes
${CARGO} build --release --features portable
cp ../target/release/mithril-aggregator .

run: build
Expand Down
3 changes: 2 additions & 1 deletion mithril-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ CARGO = cargo
all: test build

build:
${CARGO} build --release
# We use 'portable' feature to avoid SIGILL crashes
${CARGO} build --release --features portable
cp ../target/release/mithril-client .

run: build
Expand Down
2 changes: 1 addition & 1 deletion mithril-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ slog-term = "2.9.0"

[features]
default = []
portable = ["mithril-stm/portable"]
portable = ["mithril-stm/portable"] # portable feature avoids SIGILL crashes on CPUs not supporting Intel ADX instruction set when built on CPUs that support it
test_only = []
allow_skip_signer_certification = []

3 changes: 2 additions & 1 deletion mithril-common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CARGO = cargo
all: test build

build:
${CARGO} build --release
# We use 'portable' feature to avoid SIGILL crashes
${CARGO} build --release --features portable

test:
${CARGO} test
Expand Down
2 changes: 1 addition & 1 deletion mithril-signer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ mockall = "0.11.0"
slog-term = "2.9.0"

[features]
portable = ["mithril-common/portable"]
portable = ["mithril-common/portable"] # portable feature avoids SIGILL crashes on CPUs not supporting Intel ADX instruction set when built on CPUs that support it
3 changes: 2 additions & 1 deletion mithril-signer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CARGO = cargo
all: test build

build:
${CARGO} build --release
# We use 'portable' feature to avoid SIGILL crashes
${CARGO} build --release --features portable
cp ../target/release/mithril-signer .

run: build
Expand Down
2 changes: 1 addition & 1 deletion mithril-stm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ harness = false
default = ["rug-backend"]
rug-backend = ["rug/default"]
num-integer-backend = ["num-bigint", "num-rational", "num-traits"]
portable = ["blst/portable"]
portable = ["blst/portable"] # portable feature avoids SIGILL crashes on CPUs not supporting Intel ADX instruction set when built on CPUs that support it
benchmark-internals = [] # For benchmarking multi_sig

0 comments on commit 95a102a

Please sign in to comment.