|
@@ -270,6 +270,12 @@ impl BuildRequest {
|
|
|
true => cargo_args.push("release".to_string()),
|
|
|
false => cargo_args.push(self.build.server_profile.to_string()),
|
|
|
};
|
|
|
+
|
|
|
+ // If the user provided a server target, use it, otherwise use the default host target.
|
|
|
+ if let Some(target) = self.build.target_args.server_target.as_deref() {
|
|
|
+ cargo_args.push("--target".to_string());
|
|
|
+ cargo_args.push(target.to_string());
|
|
|
+ }
|
|
|
} else {
|
|
|
// Add required profile flags. --release overrides any custom profiles.
|
|
|
let custom_profile = &self.build.profile.as_ref();
|