-target-features:<string>

This just passes a string directly to the LLVM features string
This commit is contained in:
gingerBill
2022-02-28 15:08:50 +00:00
parent 2d89faa17c
commit 09e4fff5b1
4 changed files with 14 additions and 9 deletions

View File

@@ -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;