Skip to content

Commit c7112db

Browse files
committed
build: rm kotlin out dir before generating kotlin file
1 parent f2827b3 commit c7112db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/build_pkgs/src/kotlin.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ pub fn build(package: &Package) -> Result<()> {
2828

2929
run(&cargo_build_cmd, None, None)?;
3030

31+
if kotlin_out_dir.exists() {
32+
std::fs::remove_dir_all(&kotlin_out_dir)?;
33+
}
34+
3135
run(
3236
&format!(
3337
"cargo run -p uniffi-bindgen generate --library {} --language kotlin --out-dir {}",

0 commit comments

Comments
 (0)