This commit is contained in:
blueloveTH 2024-09-09 13:31:57 +08:00
parent 4ccc4cb138
commit 2742414fa7
2 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ set -e
FLAGS="-std=c11 -Iinclude -O0 -Wfatal-errors -g -DDEBUG -DPK_ENABLE_OS=1"
clang $FLAGS -shared -fPIC src2/hello.c -o libhello.dylib -undefined dynamic_lookup
# link libpocketpy.dylib
clang $FLAGS -shared -fPIC src2/hello.c -o libhello.dylib -L. -lpocketpy

View File

@ -20,7 +20,7 @@ static VM pk_default_vm;
static VM* pk_all_vm[16];
void py_initialize() {
if(!pk_current_vm){
if(pk_current_vm){
c11__abort("py_initialize() can only be called once!");
}