diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-01-07 11:57:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-07 11:57:22 +0000 |
| commit | 1e1228fb37bafd6ab277247a8bea91fab68914e0 (patch) | |
| tree | 56e63efbf901406b1f9d2065e19ba69463665983 /src/build_settings.cpp | |
| parent | 2784e8ea51c8dfa1c0c5969b8044f980b111ee99 (diff) | |
| parent | 8d7c37e38430fa5d8a40939dec5657e6837c69c6 (diff) | |
Merge pull request #3024 from Yawning/fix/simd-x86
core:simd/x86: Various fixes
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 18ad8ac0d..9d909fcae 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -1493,7 +1493,7 @@ gb_internal void enable_target_feature(TokenPos pos, String const &target_featur } -gb_internal char const *target_features_set_to_cstring(gbAllocator allocator, bool with_quotes) { +gb_internal char const *target_features_set_to_cstring(gbAllocator allocator, bool with_quotes, bool with_plus) { isize len = 0; isize i = 0; for (String const &feature : build_context.target_features_set) { @@ -1502,6 +1502,7 @@ gb_internal char const *target_features_set_to_cstring(gbAllocator allocator, bo } len += feature.len; if (with_quotes) len += 2; + if (with_plus) len += 1; i += 1; } char *features = gb_alloc_array(allocator, char, len+1); @@ -1513,6 +1514,7 @@ gb_internal char const *target_features_set_to_cstring(gbAllocator allocator, bo } if (with_quotes) features[len++] = '"'; + if (with_plus) features[len++] = '+'; gb_memmove(features + len, feature.text, feature.len); len += feature.len; if (with_quotes) features[len++] = '"'; |