Skip to content

Commit 94d0577

Browse files
committed
chore: add xxh3 to build.sh
1 parent d9584dc commit 94d0577

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build.sh

+15
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,21 @@ if ! [ -f $MODULES_DIR/dylib.pcm ]; then
161161
cd $ROOT_DIR
162162
fi
163163

164+
if ! [ -f $MODULES_DIR/xxh3.pcm ]; then
165+
log_info "compiling xxh3 module..."
166+
167+
$CPP2B_COMPILER \
168+
-stdlib=libc++ \
169+
-std=c++23 \
170+
-fexperimental-library \
171+
-isystem $LIBCXX_INCLUDE_DIR/c++/v1 \
172+
-fprebuilt-module-path=$MODULES_DIR \
173+
"$ROOT_DIR/src/xxh3.cppm" \
174+
--precompile -o $MODULES_DIR/xxh3.pcm
175+
176+
cd $ROOT_DIR
177+
fi
178+
164179
if ! [ -f $MODULES_DIR/nlohmann.json.pcm ]; then
165180
log_info "compiling nlohmann.json module..."
166181

0 commit comments

Comments
 (0)