Merge pull request #6979 from roc-lang/fix-target-arg-unknown

make target an argument for preprocess-host
This commit is contained in:
Luke Boswell 2024-08-12 17:21:26 +10:00 committed by GitHub
commit 3ebff4348f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -432,6 +432,14 @@ pub fn build_app() -> Command {
.action(ArgAction::SetTrue)
.required(false)
)
.arg(
Arg::new(FLAG_TARGET)
.long(FLAG_TARGET)
.help("Choose a different target")
.default_value(Into::<&'static str>::into(Target::default()))
.value_parser(build_target_values_parser.clone())
.required(false),
)
)
.arg(flag_optimize)
.arg(flag_max_threads)