mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 14:18:27 +00:00
fix: tool check
This commit is contained in:
parent
ed77d9d184
commit
48fb4a6632
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ pub fn build(config: &CrateConfig) -> Result<()> {
|
|||
let info = dioxus_tools.get("binaryen").unwrap();
|
||||
let binaryen = crate::tools::Tool::Binaryen;
|
||||
|
||||
if !binaryen.is_installed() {
|
||||
if binaryen.is_installed() {
|
||||
if let Some(sub) = info.as_table() {
|
||||
if sub.contains_key("wasm_opt")
|
||||
&& sub.get("wasm_opt").unwrap().as_bool().unwrap_or(false)
|
||||
|
|
Loading…
Add table
Reference in a new issue