Skip to content

Commit f98e17d

Browse files
committed
Fix builds for CPython and LLVM on Windows
1 parent 59c6d01 commit f98e17d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cpython/cppbuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ case $PLATFORM in
179179
cp win32/*.dll win32/*.pyd ../../lib/
180180
cd ..
181181
cp -r Lib/* ../lib/
182-
cp -r Include/* PC/pyconfig.h ../include/
182+
cp -r Include/* PCbuild/win32/pyconfig.h ../include/
183183
unzip -o ../lib/ensurepip/_bundled/pip* -d ../lib/
184184
# unzip -o ../lib/ensurepip/_bundled/setuptools* -d ../lib/
185185
;;
@@ -192,7 +192,7 @@ case $PLATFORM in
192192
cp amd64/*.dll amd64/*.pyd ../../lib/
193193
cd ..
194194
cp -r Lib/* ../lib/
195-
cp -r Include/* PC/pyconfig.h ../include/
195+
cp -r Include/* PCbuild/amd64/pyconfig.h ../include/
196196
unzip -o ../lib/ensurepip/_bundled/pip* -d ../lib/
197197
# unzip -o ../lib/ensurepip/_bundled/setuptools* -d ../lib/
198198
;;

cpython/src/gen/java/org/bytedeco/cpython/global/python.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4692,8 +4692,8 @@ passed as second argument to Py_TRASHCAN_BEGIN().
46924692
*/
46934693

46944694
/* Python 3.9 private API, invoked by the macros below. */
4695-
@NoException public static native int _PyTrash_begin(PyThreadState tstate, PyObject op);
4696-
@NoException public static native void _PyTrash_end(PyThreadState tstate);
4695+
4696+
46974697

46984698
@NoException public static native void _PyTrash_thread_deposit_object(PyThreadState tstate, PyObject op);
46994699
@NoException public static native void _PyTrash_thread_destroy_chain(PyThreadState tstate);

cpython/src/main/java/org/bytedeco/cpython/presets/python.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public void map(InfoMap infoMap) {
372372
.put(new Info("PyThreadFrameGetter", "jmp_buf", "_PyInterpreterFrame", "_stack_chunk", "_PyExecutorObject").cast().pointerTypes("Pointer"))
373373

374374
.put(new Info("_Py_memory_order", "PyThreadState::_preserve_36_ABI_1", "PyThreadState::_preserve_36_ABI_2",
375-
"_PyGC_generation0", "_PyBytes_InsertThousandsGroupingLocale",
375+
"_PyGC_generation0", "_PyBytes_InsertThousandsGroupingLocale","_PyTrash_begin", "_PyTrash_end",
376376
"_PyBytes_InsertThousandsGrouping", "_PyUnicode_DecodeUnicodeInternal",
377377
"_PyFloat_Repr", "_PyFloat_Digits", "_PyFloat_DigitsInit", "_PyErr_SetImportErrorWithNameFrom",
378378
"PySortWrapper_Type", "PyCmpWrapper_Type", "_PyGen_yf", "_PyAIterWrapper_New",

llvm/src/main/java/org/bytedeco/llvm/presets/LLVM.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"<llvm-c/Transforms/PassBuilder.h>", "<polly/LinkAllPasses.h>", "<FullOptimization.h>", "<NamedMetadataOperations.h>", "<TargetStubs.h>"},
4141
compiler = "cpp17", link = {"[email protected]", "[email protected]", "[email protected]"}, resource = {"include", "lib", "libexec", "share"}),
4242
@Platform(value = "macosx", link = {"LLVM", "LTO", "Remarks"}),
43-
@Platform(value = "windows", link = {"Ws2_32", "LLVM", "LTO", "Remarks"})})
43+
@Platform(value = "windows", link = {"ntdll", "Ws2_32", "LLVM", "LTO", "Remarks"})})
4444
@NoException
4545
public class LLVM implements InfoMapper {
4646
static { Loader.checkVersion("org.bytedeco", "llvm"); }

0 commit comments

Comments
 (0)