Skip to content

Commit 1089a25

Browse files
committed
fix(xtask): Use --package instead of -p on cargo ndk.
We use `cargo ndk -p {package_name}`, where `-p` is short for `--package`. However, `cargo ndk` has introduced the `-p` option (see bbqsrc/cargo-ndk@c6b93a8), short for `--platform`. It creates a confusion and the command line doesn't execute properly. Let's use the long option `--package` to clarify everything.
1 parent 3276bc8 commit 1089a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/kotlin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn build_for_android_target(
164164
let sh = sh();
165165
cmd!(
166166
sh,
167-
"cargo ndk --target {target} -o {dest_dir} build --profile {profile} -p {package_name} --features {features}"
167+
"cargo ndk --target {target} -o {dest_dir} build --profile {profile} --package {package_name} --features {features}"
168168
)
169169
.run()?;
170170

0 commit comments

Comments
 (0)