mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
chore(compiler): Build rust libraries with target-feature
This commit is contained in:
@@ -34,6 +34,17 @@ else ifeq ($(shell uname), Darwin)
|
||||
OS=darwin
|
||||
endif
|
||||
|
||||
# Set rust flags to activate target cpu features
|
||||
ifeq ($(shell uname -m), x86_64)
|
||||
ifeq ($(shell uname), Linux)
|
||||
export RUSTFLAGS=-Ctarget-feature=+aes,+sse2,+avx,+avx2
|
||||
else
|
||||
export RUSTFLAGS=-Ctarget-feature=+aes,+sse2,+avx
|
||||
endif
|
||||
else
|
||||
export RUSTFLAGS=-Ctarget-cpu=native
|
||||
endif
|
||||
|
||||
# Setup find arguments for MacOS
|
||||
ifeq ($(OS), darwin)
|
||||
FIND_EXECUTABLE_ARG=-perm +111
|
||||
|
||||
Reference in New Issue
Block a user