We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 570738a commit a97e137Copy full SHA for a97e137
1 file changed
.github/workflows/scripts/aot-demo.sh
@@ -173,7 +173,13 @@ function check-c-api-export-symbols {
173
python3 .github/workflows/scripts/build.py wheel --permissive --write-env=/tmp/ti-aot-env.sh
174
. /tmp/ti-aot-env.sh
175
176
- LIBTAICHI_C_API=$TAICHI_C_API_INSTALL_DIR/lib/libtaichi_c_api.so
+ 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
183
184
# T: global functions
185
# B: global variables (uninitialized)
0 commit comments