Skip to content

Commit 9306f7a

Browse files
committed
Don't force export of the PyInit_{module_name} in UniFfi mode
Fixes #3274
1 parent 8410a9b commit 9306f7a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎src/compile.rs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,7 @@ fn configure_platform_linker_args(
559559
if zig
560560
&& target.is_windows()
561561
&& !target.is_msvc()
562-
&& matches!(
563-
bridge_model,
564-
BridgeModel::PyO3 { .. } | BridgeModel::Cffi | BridgeModel::UniFfi
565-
)
562+
&& matches!(bridge_model, BridgeModel::PyO3 { .. } | BridgeModel::Cffi)
566563
{
567564
let py_init = format!("PyInit_{module_name}");
568565
let maturin_dir = ensure_target_maturin_dir(target_dir);

0 commit comments

Comments
 (0)