forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python3] Fix lld-link and add port config for python site (microsoft…
…#36245) * [python3] remove duplicated symbols for lld-link and add port config * v db
- Loading branch information
Showing
6 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/Modules/_ctypes/malloc_closure.c b/Modules/_ctypes/malloc_closure.c | ||
index 788bae6a9..3938f79db 100644 | ||
--- a/Modules/_ctypes/malloc_closure.c | ||
+++ b/Modules/_ctypes/malloc_closure.c | ||
@@ -11,6 +11,9 @@ | ||
#endif | ||
#include "ctypes.h" | ||
|
||
+#undef Py_ffi_closure_alloc | ||
+#undef Py_ffi_closure_free | ||
+ | ||
/* BLOCKSIZE can be adjusted. Larger blocksize will take a larger memory | ||
overhead, but allocate less blocks from the system. It may be that some | ||
systems have a limit of how many mmap'd blocks can be open. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(PYTHON3_VERSION "@VERSION@") | ||
set(PYTHON3_VERSION_MAJOR "@PYTHON_VERSION_MAJOR@") | ||
set(PYTHON3_VERSION_MINOR "@PYTHON_VERSION_MINOR@") | ||
set(PYTHON3_INCLUDE "include/python${PYTHON3_VERSION_MAJOR}.${PYTHON3_VERSION_MINOR}") | ||
set(site_base "") | ||
if(VCPKG_TARGET_IS_WINDOWS) | ||
set(site_base "tools/python${PYTHON3_VERSION_MAJOR}/Lib") | ||
else() | ||
set(site_base "lib/python${PYTHON3_VERSION_MAJOR}.${PYTHON3_VERSION_MINOR}") | ||
endif() | ||
set(PYTHON3_SITE "${site_base}/site-packages") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters