From 94d0577b2cc9e5410821462076b38b43a192209e Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Mon, 2 Sep 2024 13:25:53 -0700 Subject: [PATCH] chore: add xxh3 to build.sh --- build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build.sh b/build.sh index aca435b..41f3895 100755 --- a/build.sh +++ b/build.sh @@ -161,6 +161,21 @@ if ! [ -f $MODULES_DIR/dylib.pcm ]; then cd $ROOT_DIR fi +if ! [ -f $MODULES_DIR/xxh3.pcm ]; then + log_info "compiling xxh3 module..." + + $CPP2B_COMPILER \ + -stdlib=libc++ \ + -std=c++23 \ + -fexperimental-library \ + -isystem $LIBCXX_INCLUDE_DIR/c++/v1 \ + -fprebuilt-module-path=$MODULES_DIR \ + "$ROOT_DIR/src/xxh3.cppm" \ + --precompile -o $MODULES_DIR/xxh3.pcm + + cd $ROOT_DIR +fi + if ! [ -f $MODULES_DIR/nlohmann.json.pcm ]; then log_info "compiling nlohmann.json module..."