mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-12 21:41:06 +00:00
Strip custom sections in wasm-prune (#150)
* strip custom sections * line width
This commit is contained in:
@@ -330,6 +330,10 @@ pub fn optimize(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Also drop all custom sections
|
||||||
|
module.sections_mut()
|
||||||
|
.retain(|section| if let elements::Section::Custom(_) = section { false } else { true });
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user