mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-08 22:28:01 -05:00
21 lines
426 B
Bash
Executable File
21 lines
426 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
CURR_DIR="$(dirname "$0")"
|
|
ARCH_FEATURE="$("${CURR_DIR}/get_arch_feature.sh")"
|
|
REPO_ROOT="${CURR_DIR}/.."
|
|
TFHE_BUILD_DIR="${REPO_ROOT}/tfhe/build/"
|
|
|
|
mkdir -p "${TFHE_BUILD_DIR}"
|
|
|
|
cd "${TFHE_BUILD_DIR}"
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=RELEASE
|
|
|
|
RUSTFLAGS="-C target-cpu=native" cargo ${1:+"${1}"} build \
|
|
--release --features="${ARCH_FEATURE}",boolean-c-api,shortint-c-api -p tfhe
|
|
|
|
make -j
|
|
make "test"
|