blueloveTH há 1 ano atrás
pai
commit
be417ea528

+ 2 - 2
CMakeLists.txt

@@ -9,7 +9,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
 include(CheckIPOSupported)
 check_ipo_supported(RESULT result)
 
-if(result)
+if(result AND NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
     set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
 else()
     message(WARNING ">> IPO disabled. You will get very poor performance!!")
@@ -80,4 +80,4 @@ endif()
 # link math library
 if(UNIX)
     target_link_libraries(${PROJECT_NAME} m)
-endif()
+endif()

+ 1 - 1
amalgamate.py

@@ -8,7 +8,7 @@ from typing import List, Dict
 assert os.system("python prebuild.py") == 0
 
 ROOT = 'include/pocketpy'
-PUBLIC_HEADERS = ['common/config.h', 'common/export.h', 'pocketpy.h']
+PUBLIC_HEADERS = ['config.h', 'export.h', 'pocketpy.h']
 
 COPYRIGHT = '''/*
  *  Copyright (c) 2024 blueloveTH

+ 0 - 4
include/pocketpy/common/config.h → include/pocketpy/config.h

@@ -31,10 +31,6 @@
 #define PK_DEBUG_GC_STATS           0
 #define PK_DEBUG_COMPILER           0
 
-#ifndef PK_DEBUG_PRECOMPILED_EXEC
-#define PK_DEBUG_PRECOMPILED_EXEC   0
-#endif
-
 /*************** internal settings ***************/
 
 // This is the maximum size of the value stack in py_TValue units

+ 0 - 0
include/pocketpy/common/export.h → include/pocketpy/export.h


+ 2 - 2
include/pocketpy/pocketpy.h

@@ -5,8 +5,8 @@
 #include <stdarg.h>
 #include <stddef.h>
 
-#include "pocketpy/common/config.h"
-#include "pocketpy/common/export.h"
+#include "pocketpy/config.h"
+#include "pocketpy/export.h"
 
 #ifdef __cplusplus
 extern "C" {