mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Improvements to target triple override
This commit is contained in:
parent
db015a4112
commit
d375c805c9
9 changed files with 97 additions and 34 deletions
|
@ -16049,7 +16049,7 @@ void BeMCContext::Generate(BeFunction* function)
|
|||
|
||||
if (!mModule->mTargetCPU.IsEmpty())
|
||||
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")
|
||||
if ((!mModule->mTargetTriple.IsEmpty()) && (!mModule->mTargetTriple.StartsWith("x86_64-pc-windows")))
|
||||
{
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue