mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Added Target CPU workspace override
This commit is contained in:
parent
91e856fc0b
commit
125d5c0c8c
14 changed files with 34 additions and 13 deletions
|
@ -1645,7 +1645,7 @@ void BfIRCodeGen::InitTarget()
|
|||
llvm::Triple theTriple = llvm::Triple(mLLVMModule->getTargetTriple());
|
||||
llvm::CodeGenOpt::Level optLvl = llvm::CodeGenOpt::None;
|
||||
|
||||
String cpuName = "";
|
||||
String cpuName = mTargetCPU;
|
||||
String arch = "";
|
||||
|
||||
// Get the target specific parser.
|
||||
|
@ -1761,7 +1761,10 @@ void BfIRCodeGen::HandleNextCmd()
|
|||
case BfIRCmd_Module_SetTargetTriple:
|
||||
{
|
||||
CMD_PARAM(String, targetTriple);
|
||||
CMD_PARAM(String, targetCPU);
|
||||
|
||||
mTargetTriple.Set(targetTriple);
|
||||
mTargetCPU = targetCPU;
|
||||
if (targetTriple.IsEmpty())
|
||||
mLLVMModule->setTargetTriple(llvm::sys::getDefaultTargetTriple());
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue