This commit is contained in:
blueloveTH 2024-08-22 17:33:08 +08:00
parent ec704ed67b
commit be417ea528
5 changed files with 5 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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