We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b936ef1 commit ff1a11cCopy full SHA for ff1a11c
llvm/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -44,6 +44,7 @@
44
#include "llvm/Support/SourceMgr.h"
45
#include "llvm/Support/TargetSelect.h"
46
#include "llvm/TargetParser/Host.h"
47
+#include "llvm/TargetParser/Triple.h"
48
#include <algorithm>
49
#include <string>
50
@@ -479,6 +480,12 @@ void benchmarkMain() {
479
480
#endif
481
}
482
483
+ // case for cross generating, when native arch and target mismatch
484
+ if ((Triple(sys::getProcessTriple()).getArch() !=
485
+ Triple(TripleName).getArch()) &&
486
+ (MCPU == "native"))
487
+ ExitWithError("Incorrect cpu. To see all possible options use -mcpu=help");
488
+
489
InitializeAllExegesisTargets();
490
#define LLVM_EXEGESIS(TargetName) \
491
LLVMInitialize##TargetName##AsmPrinter(); \
0 commit comments