Skip to content

Commit a97e137

Browse files
committed
[ci] Use proper shared object extname on macOS
1 parent 570738a commit a97e137

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/scripts/aot-demo.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,13 @@ function check-c-api-export-symbols {
173173
python3 .github/workflows/scripts/build.py wheel --permissive --write-env=/tmp/ti-aot-env.sh
174174
. /tmp/ti-aot-env.sh
175175

176-
LIBTAICHI_C_API=$TAICHI_C_API_INSTALL_DIR/lib/libtaichi_c_api.so
176+
UNAME=$(uname)
177+
if [ "$UNAME" == "Linux" ]; then
178+
EXT="so"
179+
elif [ "$UNAME" == "Darwin" ]; then
180+
EXT="dylib"
181+
fi
182+
LIBTAICHI_C_API=$TAICHI_C_API_INSTALL_DIR/lib/libtaichi_c_api.$EXT
177183

178184
# T: global functions
179185
# B: global variables (uninitialized)

0 commit comments

Comments
 (0)