diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 945feefd7..373702c8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,12 +31,12 @@ jobs: strategy: matrix: include: - - target: aarch64-unknown-linux-gnu - os: ubuntu-20.04 - profile: maxperf - target: x86_64-unknown-linux-gnu os: ubuntu-20.04 profile: maxperf + - target: aarch64-unknown-linux-gnu + os: ubuntu-20.04 + profile: maxperf-no-asm - target: x86_64-apple-darwin os: macos-latest profile: maxperf diff --git a/Makefile b/Makefile index 38b710110..8f55fdb02 100644 --- a/Makefile +++ b/Makefile @@ -230,5 +230,9 @@ update-book-cli: ## Update book cli documentation. @./book/cli/update.sh $(BUILD_PATH)/$(PROFILE)/reth .PHONY: maxperf -maxperf: +maxperf: ## Builds `reth` with the most aggressive optimisations. RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc,asm-keccak + +.PHONY: maxperf-no-asm +maxperf-no-asm: ## Builds `reth` with the most aggressive optimisations, minus the "asm-keccak" feature. + RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc diff --git a/book/installation/source.md b/book/installation/source.md index d8cb10205..843d5c5d5 100644 --- a/book/installation/source.md +++ b/book/installation/source.md @@ -135,6 +135,9 @@ If compilation fails with `(signal: 9, SIGKILL: kill)`, this could mean your mac memory during compilation. If you are on Docker, consider increasing the memory of the container, or use a [pre-built binary](../installation/binaries.md). +If compilation fails in either the `keccak-asm` or `sha3-asm` crates, it is likely that your current +system configuration is not supported. See the [`keccak-asm` target table](https://github.com/DaniPopes/keccak-asm?tab=readme-ov-file#support) for supported targets. + If compilation fails with `error: linking with cc failed: exit code: 1`, try running `cargo clean`. _(Thanks to Sigma Prime for this section from [their Lighthouse book](https://lighthouse-book.sigmaprime.io/installation.html)!)_