mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Make -target-features flag support disabling of a feature
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user