annotate src/Make_cyg.mak @ 33583:123acdc8e64c v9.0.2036

patch 9.0.2036: if_python: rework python3.12 build dependency Commit: https://github.com/vim/vim/commit/396058acd0cc66e5071d052e03d2067b134952af Author: Yee Cheng Chin <ychin.git@gmail.com> Date: Tue Oct 17 10:38:11 2023 +0200 patch 9.0.2036: if_python: rework python3.12 build dependency Problem: if_python: rework python3.12 build dependency (after 9.0.1996) Solution: use PyTuple_Size instead of inlining the Py_SIZE into the Vim code base Use a simpler fix for Python 3.12 build issues Python 3.12 introduced link dependencies to their `Py_SIZE()` inline function, which #13290 fixed by copying the inline function to Vim's Python binding code. This works but it's fragile, as a future update may change the implementation of `Py_SIZE` and there is no way for us to know. The reason we need `Py_SIZE` to begin with is that we use `PyTuple_GET_SIZE()` which calls that. Just fix it by mapping that to (confusingly similarly named) `PyTuple_Size()`, which we already do in the stable ABI implementation. There's a minor performance cost in that it's not inlined and it does error checking but that's fine as we only call this function rarely (in an error handler). related: #13290 closes: #13359 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Oct 2023 10:45:04 +0200
parents b0e19f135e50
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 #
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
2 # Makefile for VIM on Win32, using MinGW cross compiler on Cygwin
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
3 #
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
4 # Also read INSTALLpc.txt!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 # This compiles Vim as a Windows application. If you want Vim to run as a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # Cygwin application use the Makefile (just like on Unix).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 #
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
9 # The old Make_cyg.mak (maintained by Dan Sharp et al.) was merged into
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
10 # Make_cyg_ming.mak. Note: USEDLL option was removed.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
11 # This file contains Cygwin specific settings. Common settings are contained
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
12 # in Make_cyg_ming.mak.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
13 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
14 # Last updated by Ken Takata.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
15 # Last Change: 2014 Oct 21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
4137
4936ee89b4bc updated for version 7.3.821
Bram Moolenaar <bram@vim.org>
parents: 4124
diff changeset
17
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
18 # uncomment 'PERL' if you want a perl-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
19 #PERL=/cygdrive/c/perl
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
21 # uncomment 'LUA' if you want a Lua-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
22 #LUA=/cygdrive/c/lua
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
24 # uncomment 'MZSCHEME' if you want a MzScheme-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
25 #MZSCHEME=/cygdrive/d/plt
3959
d3158bf4dee9 updated for version 7.3.735
Bram Moolenaar <bram@vim.org>
parents: 3652
diff changeset
26
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
27 # uncomment 'PYTHON' if you want a python-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
28 #PYTHON=/cygdrive/c/python20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
30 # uncomment 'PYTHON3' if you want a python3-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
31 #PYTHON3=/cygdrive/c/python31
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2309
diff changeset
32
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
33 # uncomment 'TCL' if you want a Tcl-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
34 #TCL=/cygdrive/c/tcl
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
36 # uncomment 'RUBY' if you want a Ruby-enabled version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
37 #RUBY=/cygdribe/c/ruby
6110
1bff71d20262 updated for version 7.4.393
Bram Moolenaar <bram@vim.org>
parents: 5537
diff changeset
38
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
16198
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 12525
diff changeset
40 # Use MinGW-w64 cross compiler.
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 12525
diff changeset
41 # There are two MinGW-w64 packages in Cygwin:
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 12525
diff changeset
42 # 32-bit: mingw64-i686-gcc-g++
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
43 # 64-bit: mingw64-x86_64-gcc-g++
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
44 # You may also need to set 'ARCH' in Make_cyg_ming.mak.
16198
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 12525
diff changeset
45 CROSS_COMPILE = i686-w64-mingw32-
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
46 #CROSS_COMPILE = x86_64-w64-mingw32-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
49 # Do not change this.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
50 UNDER_CYGWIN = yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6324
diff changeset
51 include Make_cyg_ming.mak
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
52
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
53 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: