Przeglądaj źródła

add test for precompiled

blueloveTH 1 rok temu
rodzic
commit
d47dcd8cd8
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 3 0
      include/pocketpy/config.h
  2. 1 1
      run_tests.sh

+ 3 - 0
include/pocketpy/config.h

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

+ 1 - 1
run_tests.sh

@@ -1,6 +1,6 @@
 python prebuild.py
 python prebuild.py
 SRC=$(find src/ -name "*.cpp")
 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
 python scripts/run_tests.py