blueloveTH 1 год назад
Родитель
Сommit
d47dcd8cd8
2 измененных файлов с 4 добавлено и 1 удалено
  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_AUTO_GC         0
 #define PK_DEBUG_GC_STATS           0
+
+#ifndef PK_DEBUG_PRECOMPILED_EXEC
 #define PK_DEBUG_PRECOMPILED_EXEC   0
+#endif
 
 /*************** internal settings ***************/
 

+ 1 - 1
run_tests.sh

@@ -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