diff options
| author | Yhya Ibrahim <yhyamobile57@gmail.com> | 2025-10-11 15:26:01 +0300 |
|---|---|---|
| committer | Yhya Ibrahim <yhyamobile57@gmail.com> | 2025-10-11 15:26:01 +0300 |
| commit | a672c68f03223efcab8f487d1bef05edaf5cf266 (patch) | |
| tree | 87607edec7c878eacbcb426724a578f7cf1cd7aa /src/main.cpp | |
| parent | 767098257eb5a6b4bc388ff3d21217f99292fbb9 (diff) | |
Make `-target-features` flag support disabling of a feature
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6ad20cf26..2d58cf218 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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("?")) { |