mirror of
https://github.com/privacy-scaling-explorations/emp-wasm.git
synced 2026-01-10 18:47:53 -05:00
20 lines
433 B
C++
20 lines
433 B
C++
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Note: -D__debug does not seem to impact performance, and is good for testing
|
|
clang++ \
|
|
-O3 \
|
|
-std=c++17 \
|
|
-D__debug \
|
|
programs/test_m2pc.cpp \
|
|
-I src/cpp \
|
|
-I $(brew --prefix mbedtls)/include \
|
|
-L $(brew --prefix mbedtls)/lib \
|
|
-lmbedtls \
|
|
-lmbedcrypto \
|
|
-lmbedx509 \
|
|
-o build/m2pc
|
|
|
|
echo "Build successful, use ./scripts/m2pc_test.sh to run the program."
|