Skip to content

Commit d2002cd

Browse files
fix macOS
1 parent ce1a4ae commit d2002cd

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.github/workflows/tail-call.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ jobs:
114114
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
115115
brew install llvm@${{ matrix.llvm }}
116116
export SDKROOT="$(xcrun --show-sdk-path)"
117-
export PATH="/opt/homebrew/Cellar/llvm/{{ matrix.llvm }}.1.1:$PATH"
118-
export PATH="/usr/local/opt/llvm/bin:$PATH"
117+
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
119118
CC=clang-20 ./configure --with-tail-call-interp
120119
make all --jobs 4
121120
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

Include/internal/pycore_debug_offsets.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ extern "C" {
2727
#define _GENERATE_DEBUG_SECTION_WINDOWS(name) \
2828
_Pragma(Py_STRINGIFY(section(Py_STRINGIFY(name), read, write))) \
2929
__declspec(allocate(Py_STRINGIFY(name)))
30-
#elif defined(MS_WINDOWS) && defined(__clang__)
31-
_Pragma(Py_STRINGIFY(section(Py_STRINGIFY(name), read, write)))
3230
#else
3331
#define _GENERATE_DEBUG_SECTION_WINDOWS(name)
3432
#endif

Python/pylifecycle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static void call_ll_exitfuncs(_PyRuntimeState *runtime);
109109
_Py_COMP_DIAG_PUSH
110110
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
111111

112-
GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime)
112+
GENERATE_DEBUG_SECTION(PyRuntime, extern _PyRuntimeState _PyRuntime)
113113
= _PyRuntimeState_INIT(_PyRuntime, _Py_Debug_Cookie);
114114
_Py_COMP_DIAG_POP
115115

0 commit comments

Comments
 (0)