add test for precompiled

This commit is contained in:
blueloveTH 2024-04-14 15:37:22 +08:00
parent 88d1d4e0a2
commit d47dcd8cd8
2 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@
#define PK_DEBUG_NO_MEMORY_POOL 0
#define PK_DEBUG_NO_AUTO_GC 0
#define PK_DEBUG_GC_STATS 0
#ifndef PK_DEBUG_PRECOMPILED_EXEC
#define PK_DEBUG_PRECOMPILED_EXEC 0
#endif
/*************** internal settings ***************/

View File

@ -1,6 +1,6 @@
python prebuild.py
SRC=$(find src/ -name "*.cpp")
clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -frtti -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -DPK_ENABLE_OS=1
clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -frtti -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -DPK_ENABLE_OS=1 -DPK_DEBUG_PRECOMPILED_EXEC=1
python scripts/run_tests.py