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 @@ -447,7 +447,6 @@ def test_main(self):
447447 _main ()
448448 self .assertTrue (len (output .getvalue ().split ('\n ' )) > 0 )
449449
450- @unittest .expectedFailure # TODO: RUSTPYTHON
451450 @unittest .skipIf (sys .platform == "win32" , "Does not apply to Windows" )
452451 def test_ldshared_value (self ):
453452 ldflags = sysconfig .get_config_var ('LDFLAGS' )
Original file line number Diff line number Diff line change 1+ // spell-checker: words LDSHARED ARFLAGS CPPFLAGS CCSHARED BASECFLAGS BLDSHARED
2+
13pub ( crate ) use _sysconfigdata:: make_module;
24
35#[ pymodule]
@@ -18,6 +20,21 @@ pub(crate) mod _sysconfigdata {
1820 "MULTIARCH" => MULTIARCH ,
1921 // enough for tests to stop expecting urandom() to fail after restricting file resources
2022 "HAVE_GETRANDOM" => 1 ,
23+ // Compiler configuration for native extension builds
24+ "CC" => "cc" ,
25+ "CXX" => "c++" ,
26+ "CFLAGS" => "" ,
27+ "CPPFLAGS" => "" ,
28+ "LDFLAGS" => "" ,
29+ "LDSHARED" => "cc -shared" ,
30+ "CCSHARED" => "" ,
31+ "SHLIB_SUFFIX" => ".so" ,
32+ "SO" => ".so" ,
33+ "AR" => "ar" ,
34+ "ARFLAGS" => "rcs" ,
35+ "OPT" => "" ,
36+ "BASECFLAGS" => "" ,
37+ "BLDSHARED" => "cc -shared" ,
2138 }
2239 include ! ( concat!( env!( "OUT_DIR" ) , "/env_vars.rs" ) ) ;
2340 vars
You can’t perform that action at this time.
0 commit comments