mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
...
This commit is contained in:
parent
ec704ed67b
commit
be417ea528
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user