@@ -257,23 +257,23 @@ macro_rules! extern_libpython {
257257 ( $abi: literal { $( $body: tt) * } ) => {
258258 extern_libpython!( @impl $abi { $( $body) * }
259259 // abi3
260- "python3" , "python3_d" ,
260+ "python3.dll " , "python3_d.dll" , "libpython3.dll" , "libpython3_d.dll ",
261261 // abi3t
262- "python3t" , "python3t_d" ,
262+ "python3t.dll " , "python3t_d.dll" , "libpython3t.dll" , "libpython3t_d.dll ",
263263 // Python 3.9 - 3.15
264- "python39" , "python39_d" ,
265- "python310" , "python310_d" ,
266- "python311" , "python311_d" ,
267- "python312" , "python312_d" ,
268- "python313" , "python313_d" ,
269- "python314" , "python314_d" ,
270- "python315" , "python315_d" ,
264+ "python39.dll " , "python39_d.dll" , "libpython39.dll" , "libpython39_d.dll ",
265+ "python310.dll " , "python310_d.dll" , "libpython310.dll" , "libpython310_d.dll ",
266+ "python311.dll " , "python311_d.dll" , "libpython311.dll" , "libpython311_d.dll ",
267+ "python312.dll " , "python312_d.dll" , "libpython312.dll" , "libpython312_d.dll ",
268+ "python313.dll " , "python313_d.dll" , "libpython313.dll" , "libpython313_d.dll ",
269+ "python314.dll " , "python314_d.dll" , "libpython314.dll" , "libpython314_d.dll ",
270+ "python315.dll " , "python315_d.dll" , "libpython315.dll" , "libpython315_d.dll ",
271271 // free-threaded builds (3.13+)
272- "python313t" , "python313t_d" ,
273- "python314t" , "python314t_d" ,
274- "python315t" , "python315t_d" ,
272+ "python313t.dll " , "python313t_d.dll" , "libpython313t.dll" , "libpython313t_d.dll ",
273+ "python314t.dll " , "python314t_d.dll" , "libpython314t.dll" , "libpython314t_d.dll ",
274+ "python315t.dll " , "python315t_d.dll" , "libpython315t.dll" , "libpython315t_d.dll ",
275275 // PyPy (DLL is libpypy3.X-c.dll, not pythonXY.dll)
276- "libpypy3.11-c" ,
276+ "libpypy3.11-c.dll " ,
277277 ) ;
278278 } ;
279279 // Internal: generate cfg_attr for each DLL name. One of these will be selected
@@ -287,9 +287,9 @@ macro_rules! extern_libpython {
287287 ( @impl $abi: literal { $( $body: tt) * } $( $dll: literal) ,* $( , ) ?) => {
288288 $(
289289 #[ cfg_attr( all( windows, target_arch = "x86" , pyo3_dll = $dll) ,
290- link( name = $dll, kind = "raw-dylib" , import_name_type = "undecorated" ) ) ]
290+ link( name = $dll, kind = "raw-dylib" , modifiers = "+verbatim" , import_name_type = "undecorated" ) ) ]
291291 #[ cfg_attr( all( windows, not( target_arch = "x86" ) , pyo3_dll = $dll) ,
292- link( name = $dll, kind = "raw-dylib" ) ) ]
292+ link( name = $dll, kind = "raw-dylib" , modifiers = "+verbatim" ) ) ]
293293 ) *
294294 extern $abi {
295295 extern_libpython_items! { $( $body) * }
0 commit comments