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

@@ -3055,7 +3055,10 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
}
first = false;
llvm_features = gb_string_appendc(llvm_features, "+");
if (*str.text != '+' && *str.text != '-') {
llvm_features = gb_string_appendc(llvm_features, "+");
}
llvm_features = gb_string_append_length(llvm_features, str.text, str.len);
}