File tree Expand file tree Collapse file tree 5 files changed +32
-32
lines changed Expand file tree Collapse file tree 5 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 1612
1612
#define PY_SUPPORT_TIER 1
1613
1613
1614
1614
/* Define if you want to build an interpreter with many run-time checks. */
1615
- /* #undef Py_DEBUG */
1615
+ #if !defined(NDEBUG ) && !defined(Py_LIMITED_API ) && !defined(DISABLE_PYDEBUG )
1616
+ #define Py_DEBUG
1617
+ #define GC_NDEBUG
1618
+ #endif
1616
1619
1617
1620
/* Defined if Python is built as a shared library. */
1618
1621
/* #undef Py_ENABLE_SHARED */
Original file line number Diff line number Diff line change 1610
1610
#define PY_SUPPORT_TIER 2
1611
1611
1612
1612
/* Define if you want to build an interpreter with many run-time checks. */
1613
- /* #undef Py_DEBUG */
1613
+ #if !defined(NDEBUG ) && !defined(Py_LIMITED_API ) && !defined(DISABLE_PYDEBUG )
1614
+ #define Py_DEBUG
1615
+ #define GC_NDEBUG
1616
+ #endif
1614
1617
1615
1618
/* Defined if Python is built as a shared library. */
1616
1619
/* #undef Py_ENABLE_SHARED */
Original file line number Diff line number Diff line change 4
4
5
5
#define Py_NO_ENABLE_SHARED
6
6
7
+ #if !defined(NDEBUG ) && !defined(Py_LIMITED_API ) && !defined(DISABLE_PYDEBUG )
8
+ #define Py_DEBUG
9
+ #define GC_NDEBUG
10
+ #endif
11
+
7
12
#include "../PC/pyconfig.h"
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #if defined(Py_BUILD_CORE ) || defined(Py_BUILD_CORE_BUILTIN ) || defined(Py_BUILD_CORE_MODULE )
4
-
5
- #define ABIFLAGS ""
6
-
7
- // Need for Modules/getpath.c
8
- #define PREFIX "/var/empty"
9
- #define EXEC_PREFIX "/var/empty"
10
- #define VERSION "3.12"
11
- #define VPATH ""
12
- #define PLATLIBDIR "lib"
13
-
14
- #define USE_ZLIB_CRC32
15
-
16
- #if defined(__linux__ )
17
- # define PLATFORM "linux"
18
- # define MULTIARCH "x86_64-linux-gnu"
19
- # define SOABI "cpython-312-x86_64-linux-gnu"
20
- #elif defined(__APPLE__ )
21
- # define PLATFORM "darwin"
22
- # define MULTIARCH "darwin"
23
- # define SOABI "cpython-312-darwin"
24
- #endif
25
-
26
- #endif
27
-
28
- #if !defined(NDEBUG ) && !defined(Py_DEBUG ) && !defined(Py_LIMITED_API ) && !defined(DISABLE_PYDEBUG )
29
- #define Py_DEBUG
30
- #define GC_NDEBUG
31
- #endif
32
-
33
3
#if defined(__APPLE__ ) && (defined(__aarch64__ ) || defined(_M_ARM64 ))
34
4
# include "pyconfig-osx-arm64.h"
35
5
#elif defined(__APPLE__ ) && (defined(__x86_64__ ) || defined(_M_X64 ))
Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ NO_UTIL()
38
38
CFLAGS(
39
39
-DPy_BUILD_CORE
40
40
-DPy_BUILD_CORE_BUILTIN
41
+ -DUSE_ZLIB_CRC32
42
+ -DABIFLAGS =\"\"
43
+ -DPREFIX =\"/var/empty\"
44
+ -DEXEC_PREFIX =\"/var/empty\"
45
+ -DVERSION =\"3.12\"
46
+ -DVPATH =\"\"
47
+ -DPLATLIBDIR =\"lib\"
41
48
)
42
49
43
50
IF (CLANG_CL)
@@ -47,10 +54,22 @@ IF (CLANG_CL)
47
54
ENDIF()
48
55
49
56
IF (OS_DARWIN)
57
+ CFLAGS(
58
+ -DPLATFORM =\"darwin\"
59
+ -DMULTIARCH =\"darwin\"
60
+ -DSOABI =\"cpython-312-darwin\"
61
+ )
62
+
50
63
LDFLAGS(
51
64
-framework CoreFoundation
52
65
-framework SystemConfiguration
53
66
)
67
+ ELSEIF (OS_LINUX)
68
+ CFLAGS(
69
+ -DPLATFORM =\"linux\"
70
+ -DMULTIARCH =\"x86_64-linux-gnu\"
71
+ -DSOABI =\"cpython-312-x86_64-linux-gnu\"
72
+ )
54
73
ELSEIF (OS_WINDOWS)
55
74
CFLAGS(
56
75
-DPY3_DLLNAME =L\"python3\"
You can’t perform that action at this time.
0 commit comments