We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f311c1 commit b1a7014Copy full SHA for b1a7014
src/rust/cryptography-cffi/build.rs
@@ -93,6 +93,11 @@ fn main() {
93
94
if cfg!(windows) {
95
build.define("WIN32_LEAN_AND_MEAN", None);
96
+ // python.h doesn't set this on the Windows free-threaded build
97
+ // see https://github.com/python/cpython/issues/127294
98
+ if is_free_threaded {
99
+ build.define("Py_GIL_DISABLED", "1");
100
+ }
101
}
102
103
build.compile("_openssl.a");
0 commit comments