Merge pull request #3559 from davidhewitt/cross-compile-link
add link to user guide to cross compile error message
This commit is contained in:
commit
c8fdb80630
|
@ -1361,9 +1361,13 @@ fn default_cross_compile(cross_compile_config: &CrossCompileConfig) -> Result<In
|
||||||
let version = cross_compile_config
|
let version = cross_compile_config
|
||||||
.version
|
.version
|
||||||
.or_else(get_abi3_version)
|
.or_else(get_abi3_version)
|
||||||
.ok_or(
|
.ok_or_else(||
|
||||||
|
format!(
|
||||||
"PYO3_CROSS_PYTHON_VERSION or an abi3-py3* feature must be specified \
|
"PYO3_CROSS_PYTHON_VERSION or an abi3-py3* feature must be specified \
|
||||||
when cross-compiling and PYO3_CROSS_LIB_DIR is not set.",
|
when cross-compiling and PYO3_CROSS_LIB_DIR is not set.\n\
|
||||||
|
= help: see the PyO3 user guide for more information: https://pyo3.rs/v{}/building_and_distribution.html#cross-compiling",
|
||||||
|
env!("CARGO_PKG_VERSION")
|
||||||
|
)
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
let abi3 = is_abi3();
|
let abi3 = is_abi3();
|
||||||
|
|
Loading…
Reference in New Issue