Skip to main content

make_cross_compile_config

Function make_cross_compile_config 

Source
pub fn make_cross_compile_config() -> Result<Option<InterpreterConfig>, Error>
Expand description

Generates an interpreter config suitable for cross-compilation.

This must be called from PyO3’s build script, because it relies on environment variables such as CARGO_CFG_TARGET_OS which aren’t available at any other time.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here