diff options
Diffstat (limited to 'unittests/ExecutionEngine/Orc/OrcTestCommon.h')
-rw-r--r-- | unittests/ExecutionEngine/Orc/OrcTestCommon.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unittests/ExecutionEngine/Orc/OrcTestCommon.h b/unittests/ExecutionEngine/Orc/OrcTestCommon.h index f480e0789ae5f..fe3da88dc9d1f 100644 --- a/unittests/ExecutionEngine/Orc/OrcTestCommon.h +++ b/unittests/ExecutionEngine/Orc/OrcTestCommon.h @@ -46,12 +46,15 @@ public: if (TM) { // If we found a TargetMachine, check that it's one that Orc supports. const Triple& TT = TM->getTargetTriple(); - if (TT.getArch() != Triple::x86_64 || !TT.isOSDarwin()) + + if ((TT.getArch() != Triple::x86_64 && TT.getArch() != Triple::x86) || + TT.isOSWindows()) TM = nullptr; } }; protected: + LLVMContext Context; std::unique_ptr<TargetMachine> TM; private: static bool NativeTargetInitialized; |