Skip to content

Commit 1d657cf

Browse files
committed
[ORC] Initialize native target in JITLinkRedirectionManagerTest test fixture.
The native target must be initialized here otherwise the test will be skipped unless some prior test happens to initialize it. Failure to initialize the native target was causing the test to be skipped when --gtest_filter was used.
1 parent 890c4be commit 1d657cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/unittests/ExecutionEngine/Orc/JITLinkRedirectionManagerTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class JITLinkRedirectionManagerTest : public testing::Test {
2626

2727
protected:
2828
void SetUp() override {
29+
OrcNativeTarget::initialize();
30+
2931
auto JTMB = JITTargetMachineBuilder::detectHost();
3032
// Bail out if we can not detect the host.
3133
if (!JTMB) {

0 commit comments

Comments
 (0)