diff options
| author | Yawning Angel <yawning@schwanenlied.me> | 2023-12-15 17:29:59 +0900 |
|---|---|---|
| committer | Yawning Angel <yawning@schwanenlied.me> | 2024-01-07 20:04:40 +0900 |
| commit | cd65a15d81b32636c5097200446cc6d6afc7199b (patch) | |
| tree | 27d17da8cbc4eb1e9d6380e2179968b0cc87d333 /src/entity.cpp | |
| parent | 9235e8245193fb891e46ee4a7daa3e101ff8032a (diff) | |
src: `enable_target_feature` should add features, not overwrite
`llvm_features` being empty is the default state, and implies the
presence of certain features.
Previously if any target features were explicitly enabled by the
`enable_target_feature` attribute, they were added comma separated
to `llvm_features`.
For example: `lzcnt,popcnt,...,sse4.2,sse`
This was causing LLVM to try to target a CPU that *ONLY* has the
explicitly enabled features. This now will prefix explicitly enabled
features with a `+`, and preserve the existing `llvm_features` string
by appending to it if it is set.
Diffstat (limited to 'src/entity.cpp')
0 files changed, 0 insertions, 0 deletions