aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-28 15:08:50 +0000
committergingerBill <bill@gingerbill.org>2022-02-28 15:08:50 +0000
commit09e4fff5b18a314876c5f5d79f01cdd90aed7362 (patch)
tree1829aa86653775193e88df3abc7d502e25f11f5a /src/llvm_backend.cpp
parent2d89faa17cf88b76e183e35f4d50722271c76d20 (diff)
`-target-features:<string>`
This just passes a string directly to the LLVM features string
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index 40c06c23a..ed3ae7dfc 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -1298,6 +1298,10 @@ void lb_generate_code(lbGenerator *gen) {
}
}
+ if (build_context.target_features.len != 0) {
+ llvm_features = alloc_cstring(permanent_allocator(), build_context.target_features);
+ }
+
// GB_ASSERT_MSG(LLVMTargetHasAsmBackend(target));
LLVMCodeGenOptLevel code_gen_level = LLVMCodeGenLevelNone;