mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
fix sysconfigdata
This commit is contained in:
1
Lib/test/test_sysconfig.py
vendored
1
Lib/test/test_sysconfig.py
vendored
@@ -447,7 +447,6 @@ class TestSysConfig(unittest.TestCase):
|
||||
_main()
|
||||
self.assertTrue(len(output.getvalue().split('\n')) > 0)
|
||||
|
||||
@unittest.expectedFailure # TODO: RUSTPYTHON
|
||||
@unittest.skipIf(sys.platform == "win32", "Does not apply to Windows")
|
||||
def test_ldshared_value(self):
|
||||
ldflags = sysconfig.get_config_var('LDFLAGS')
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// spell-checker: words LDSHARED ARFLAGS CPPFLAGS CCSHARED BASECFLAGS BLDSHARED
|
||||
|
||||
pub(crate) use _sysconfigdata::make_module;
|
||||
|
||||
#[pymodule]
|
||||
@@ -18,6 +20,21 @@ pub(crate) mod _sysconfigdata {
|
||||
"MULTIARCH" => MULTIARCH,
|
||||
// enough for tests to stop expecting urandom() to fail after restricting file resources
|
||||
"HAVE_GETRANDOM" => 1,
|
||||
// Compiler configuration for native extension builds
|
||||
"CC" => "cc",
|
||||
"CXX" => "c++",
|
||||
"CFLAGS" => "",
|
||||
"CPPFLAGS" => "",
|
||||
"LDFLAGS" => "",
|
||||
"LDSHARED" => "cc -shared",
|
||||
"CCSHARED" => "",
|
||||
"SHLIB_SUFFIX" => ".so",
|
||||
"SO" => ".so",
|
||||
"AR" => "ar",
|
||||
"ARFLAGS" => "rcs",
|
||||
"OPT" => "",
|
||||
"BASECFLAGS" => "",
|
||||
"BLDSHARED" => "cc -shared",
|
||||
}
|
||||
include!(concat!(env!("OUT_DIR"), "/env_vars.rs"));
|
||||
vars
|
||||
|
||||
Reference in New Issue
Block a user