Skip to content

Commit

Permalink
Use default ext_suffix for Emscripten target if not provided in `PY…
Browse files Browse the repository at this point in the history
…O3_CONFIG_FILE`
  • Loading branch information
messense committed Feb 17, 2023
1 parent d4726f2 commit c9b1e9f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/python_interpreter/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ impl InterpreterConfig {
)
}),
}
} else if target.is_emscripten() && matches!(interpreter_kind, InterpreterKind::CPython) {
ext_suffix.unwrap_or_else(|| {
format!(
".cpython-{}-{}-{}.{}",
abi_tag,
target.get_python_arch(),
target.get_python_os(),
file_ext
)
})
} else {
ext_suffix.context("missing value for ext_suffix")?
};
Expand Down

0 comments on commit c9b1e9f

Please sign in to comment.