Make -target-features flag support disabling of a feature

This commit is contained in:
Yhya Ibrahim
2025-10-11 15:26:01 +03:00
parent 767098257e
commit a672c68f03
2 changed files with 9 additions and 1 deletions

View File

@@ -3719,6 +3719,11 @@ int main(int arg_count, char const **arg_ptr) {
String item = string_split_iterator(&target_it, ',');
if (item == "") break;
if (*item.text == '+' || *item.text == '-') {
item.text++;
item.len--;
}
String invalid;
if (!check_target_feature_is_valid_for_target_arch(item, &invalid) && item != str_lit("help")) {
if (item != str_lit("?")) {