Skip to content

Commit a9f6a8e

Browse files
committed
fix: wasm runtime compilation with latest version of pg_query extension
1 parent 7ccf021 commit a9f6a8e

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

wasm/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if [ ! -d "$LIBXML2_DIR" ]; then
4848
fi
4949

5050
echo "Build libpg_query for WebAssembly"
51-
LIBPG_QUERY_VERSION=17-6.1.0
51+
LIBPG_QUERY_VERSION=17-latest
5252
LIBPG_QUERY_DIR=libpg_query
5353
LIBPG_QUERY_INSTALL_DIR="$PROJECT_ROOT/$LIBPG_QUERY_DIR"
5454

@@ -94,7 +94,7 @@ cp -r "$SNAPPY_EXT_DIR" "$SNAPPY_EXT_DST"
9494
echo "Configure PHP"
9595

9696
# Use -Oz for size optimization instead of -O3 for speed
97-
export CFLAGS="-Oz -flto -fPIC -g0 -DZEND_MM_ERROR=0 -I$LIBXML2_INSTALL_DIR/include/libxml2 -I$LIBPG_QUERY_INSTALL_DIR -sUSE_ZLIB=1"
97+
export CFLAGS="-Oz -flto -fPIC -g0 -DZEND_MM_ERROR=0 -I$LIBXML2_INSTALL_DIR/include/libxml2 -I$LIBPG_QUERY_INSTALL_DIR -I$LIBPG_QUERY_INSTALL_DIR/src -sUSE_ZLIB=1"
9898
export CXXFLAGS="-Oz -flto -fPIC -g0 -std=c++11 -sUSE_ZLIB=1"
9999
export LDFLAGS="-L$LIBXML2_INSTALL_DIR/lib -L$LIBPG_QUERY_INSTALL_DIR -sUSE_ZLIB=1"
100100

web/landing/assets/wasm/php.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/landing/assets/wasm/php.wasm

858 KB
Binary file not shown.
97 Bytes
Binary file not shown.

web/landing/resources/dsl.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)