aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2023-12-15 17:29:59 +0900
committerYawning Angel <yawning@schwanenlied.me>2024-01-07 20:04:40 +0900
commitcd65a15d81b32636c5097200446cc6d6afc7199b (patch)
tree27d17da8cbc4eb1e9d6380e2179968b0cc87d333 /src/entity.cpp
parent9235e8245193fb891e46ee4a7daa3e101ff8032a (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