Skip to content

Commit

Permalink
only show free-threaded warning on free-threaded build (#4473)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Aug 23, 2024
1 parent ea6a0aa commit a8970ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyo3-ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn ensure_gil_enabled(interpreter_config: &InterpreterConfig) -> Result<()> {
= help: set UNSAFE_PYO3_BUILD_FREE_THREADED=1 to suppress this check and build anyway for free-threaded Python",
std::env::var("CARGO_PKG_VERSION").unwrap()
);
if interpreter_config.abi3 {
if !gil_enabled && interpreter_config.abi3 {
warn!(
"The free-threaded build of CPython does not yet support abi3 so the build artifacts will be version-specific."
)
Expand Down

0 comments on commit a8970ea

Please sign in to comment.