Very very rudimentary support for -target:linux_arm64 -subtarget:android

This commit is contained in:
gingerBill
2025-03-26 13:09:39 +00:00
parent 4b64317296
commit e6718fcfcc
4 changed files with 199 additions and 13 deletions

View File

@@ -1105,8 +1105,9 @@ gb_internal bool parse_build_flags(Array<String> args) {
String str = value.value_string;
bool found = false;
if (selected_target_metrics->metrics->os != TargetOs_darwin) {
gb_printf_err("-subtarget can only be used with darwin based targets at the moment\n");
if (selected_target_metrics->metrics->os != TargetOs_darwin &&
selected_target_metrics->metrics->os != TargetOs_linux ) {
gb_printf_err("-subtarget can only be used with darwin and linux based targets at the moment\n");
bad_flags = true;
break;
}