Skip to content

Commit

Permalink
chore: add xxh3 to build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Nov 27, 2024
1 parent d9584dc commit 94d0577
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."

Expand Down

0 comments on commit 94d0577

Please sign in to comment.