File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ Fix unresolved symbol link failures (due to linking to wrong DLL) when compiling for Python 3.13t with ` abi3 ` features enabled.
Original file line number Diff line number Diff line change @@ -1649,7 +1649,7 @@ fn default_lib_name_windows(
1649
1649
// CPython bug: linking against python3_d.dll raises error
1650
1650
// https://github.com/python/cpython/issues/101614
1651
1651
Ok ( format ! ( "python{}{}_d" , version. major, version. minor) )
1652
- } else if abi3 && !( implementation. is_pypy ( ) || implementation. is_graalpy ( ) ) {
1652
+ } else if abi3 && !( gil_disabled || implementation. is_pypy ( ) || implementation. is_graalpy ( ) ) {
1653
1653
if debug {
1654
1654
Ok ( WINDOWS_ABI3_DEBUG_LIB_NAME . to_owned ( ) )
1655
1655
} else {
@@ -2544,6 +2544,21 @@ mod tests {
2544
2544
. unwrap( ) ,
2545
2545
"python313t" ,
2546
2546
) ;
2547
+ assert_eq ! (
2548
+ super :: default_lib_name_windows(
2549
+ PythonVersion {
2550
+ major: 3 ,
2551
+ minor: 13
2552
+ } ,
2553
+ CPython ,
2554
+ true , // abi3 true should not affect the free-threaded lib name
2555
+ false ,
2556
+ false ,
2557
+ true ,
2558
+ )
2559
+ . unwrap( ) ,
2560
+ "python313t" ,
2561
+ ) ;
2547
2562
assert_eq ! (
2548
2563
super :: default_lib_name_windows(
2549
2564
PythonVersion {
You can’t perform that action at this time.
0 commit comments