fix(ci): conditional asm feature (#6096)

This commit is contained in:
Roman Krasiuk
2024-01-16 20:15:12 +01:00
committed by GitHub
parent be2d6f0fba
commit 5a623a9c12
2 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,7 @@ jobs:
profile: maxperf
- target: aarch64-unknown-linux-gnu
os: ubuntu-20.04
profile: maxperf-no-asm
profile: maxperf
- target: x86_64-apple-darwin
os: macos-latest
profile: maxperf

View File

@ -15,7 +15,7 @@ BUILD_PATH = "target"
ifeq ($(OS),Windows_NT)
FEATURES ?=
else
FEATURES ?= jemalloc
FEATURES ?= jemalloc asm-keccak
endif
# Cargo profile for builds. Default is for local builds, CI uses an override.
@ -74,6 +74,9 @@ op-build-native-%:
# No jemalloc on Windows
build-x86_64-pc-windows-gnu: FEATURES := $(filter-out jemalloc jemalloc-prof,$(FEATURES))
# asm keccak optimizations not enabled
build-aarch64-unknown-linux-gnu: FEATURES := $(filter-out asm-keccak,$(FEATURES))
# Note: The additional rustc compiler flags are for intrinsics needed by MDBX.
# See: https://github.com/cross-rs/cross/wiki/FAQ#undefined-reference-with-build-std
build-%: