Using parsed codegen flags

This commit is contained in:
Liu Dingming 2023-09-07 17:36:21 +08:00
parent bb6dcf5f74
commit 487766cef0

View File

@ -424,7 +424,7 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
return nullptr;
}
TargetOptions Options;
TargetOptions Options = codegen::InitTargetOptionsFromCodeGenFlags(Trip);
Options.FloatABIType = FloatABI::Default;
if (UseSoftFloat) {