Files
emp-wasm/scripts/build_2pc_test.sh
2025-01-28 18:14:00 +11:00

20 lines
416 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Note: -D__debug is noticeably slower, but is good for testing
clang++ \
-O3 \
-D__debug \
-std=c++17 \
programs/test_2pc.cpp \
-I src/cpp/ \
-I $(brew --prefix mbedtls)/include \
-L $(brew --prefix mbedtls)/lib \
-lmbedtls \
-lmbedcrypto \
-lmbedx509 \
-o build/2pc
echo "Build successful, use ./scripts/2pc_test.sh to run the program."