Skip to content

Commit bb319c6

Browse files
committed
chore: add xxh3 to build.sh
1 parent 3c7f9de commit bb319c6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,22 @@ if ! [ -f $MODULES_DIR/dylib.pcm ]; then
148148
cd $ROOT_DIR
149149
fi
150150

151+
if ! [ -f $MODULES_DIR/xxh3.pcm ]; then
152+
cd $LIBCXX_MODULES_DIR/c++/v1
153+
log_info "compiling xxh3 module..."
154+
155+
$CPP2B_COMPILER \
156+
-stdlib=libc++ \
157+
-std=c++23 \
158+
-fexperimental-library \
159+
-isystem $LIBCXX_INCLUDE_DIR/c++/v1 \
160+
-fprebuilt-module-path=$MODULES_DIR \
161+
"$ROOT_DIR/src/xxh3.cppm" \
162+
--precompile -o $MODULES_DIR/xxh3.pcm
163+
164+
cd $ROOT_DIR
165+
fi
166+
151167
log_info "compiling cpp2b module..."
152168
if [ -f "$ROOT_DIR/.cache/cpp2/source/_build/cpp2b.cppm" ]; then
153169
rm "$ROOT_DIR/.cache/cpp2/source/_build/cpp2b.cppm"

0 commit comments

Comments
 (0)