mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Ability to explicitly set target triple
This commit is contained in:
parent
8ce94e7076
commit
37c4074c44
4 changed files with 15 additions and 2 deletions
|
@ -16040,7 +16040,7 @@ BeMCOperand BeMCContext::AllocBinaryOp(BeMCInstKind instKind, const BeMCOperand&
|
|||
}
|
||||
|
||||
void BeMCContext::Generate(BeFunction* function)
|
||||
{
|
||||
{
|
||||
BP_ZONE_F("BeMCContext::Generate %s", function->mName.c_str());
|
||||
|
||||
mBeFunction = function;
|
||||
|
@ -16048,7 +16048,12 @@ void BeMCContext::Generate(BeFunction* function)
|
|||
mModule = function->mModule;
|
||||
|
||||
if (!mModule->mTargetCPU.IsEmpty())
|
||||
mModule->mBeIRCodeGen->Fail(StrFormat("Cannot set Target CPU '%s' for +Og optimization. Considering compiling under a different optimization setting.", mModule->mTargetCPU.c_str()));
|
||||
mModule->mBeIRCodeGen->Fail(StrFormat("Cannot set Target CPU to '%s' for +Og optimization. Considering compiling under a different optimization setting.", mModule->mTargetCPU.c_str()));
|
||||
if (mModule->mTargetTriple != "x86_64-pc-windows-msvc")
|
||||
{
|
||||
mModule->mBeIRCodeGen->Fail(StrFormat("Cannot set Target Triple to '%s' for +Og optimization. Considering compiling under a different optimization setting.", mModule->mTargetTriple.c_str()));
|
||||
return;
|
||||
}
|
||||
|
||||
//mDbgPreferredRegs[15] = X64Reg_RCX;
|
||||
//mDbgPreferredRegs[7] = X64Reg_RCX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue