forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python3] Add patch to fix Windows 11 SDK build failure. (microsoft#2…
…0292) * [python3] Remove spurious dependencies. * [python3] Add workaround for SDK 10.0.22000.0 * x-add-version
- Loading branch information
Showing
5 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
ports/python3/0008-workaround-windows-11-sdk-rc-compiler-error.patch
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,30 @@ | ||
From 0a72b7061ed79c5d6d37b41a5b1610e32fb371a4 Mon Sep 17 00:00:00 2001 | ||
From: Adam Johnson <[email protected]> | ||
Date: Wed, 22 Sep 2021 21:04:21 -0400 | ||
Subject: [PATCH] workaround windows 11 sdk rc compiler error | ||
|
||
winnt.h was changed to error if the `SYSTEM_CACHE_ALIGNMENT` cannot be | ||
determined. when the RC compiler is invoked, this seems to fail where | ||
previous SDKs silently set the ARM value. | ||
--- | ||
PC/python_ver_rc.h | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
diff --git a/PC/python_ver_rc.h b/PC/python_ver_rc.h | ||
index 90fc6ba1a1..e313a5138e 100644 | ||
--- a/PC/python_ver_rc.h | ||
+++ b/PC/python_ver_rc.h | ||
@@ -1,3 +1,10 @@ | ||
+// Temporarily workaround bug in Windows SDK 10.0.22000.0 winnt.h | ||
+#ifdef RC_INVOKED | ||
+# ifndef SYSTEM_CACHE_ALIGNMENT_SIZE | ||
+# define SYSTEM_CACHE_ALIGNMENT_SIZE 64 | ||
+# endif | ||
+#endif | ||
+ | ||
// Resource script for Python core DLL. | ||
// Currently only holds version information. | ||
// | ||
-- | ||
2.33.0.windows.1 | ||
|
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
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