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 Sep 2, 2024
1 parent 3c7f9de commit bb319c6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,22 @@ if ! [ -f $MODULES_DIR/dylib.pcm ]; then
cd $ROOT_DIR
fi

if ! [ -f $MODULES_DIR/xxh3.pcm ]; then
cd $LIBCXX_MODULES_DIR/c++/v1
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

log_info "compiling cpp2b module..."
if [ -f "$ROOT_DIR/.cache/cpp2/source/_build/cpp2b.cppm" ]; then
rm "$ROOT_DIR/.cache/cpp2/source/_build/cpp2b.cppm"
Expand Down

0 comments on commit bb319c6

Please sign in to comment.