Skip to content

Commit 43f3287

Browse files
committed
Script: Disable VirtualMachine code when using LLVM
1 parent ca66a7c commit 43f3287

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/engine/script.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ std::shared_ptr<Thread> Script::start()
105105
std::shared_ptr<Thread> Script::start(Target *target)
106106
{
107107
auto thread = std::make_shared<Thread>(target, impl->engine, this);
108+
#ifndef USE_LLVM
108109
VirtualMachine *vm = thread->vm();
109110
vm->setBytecode(impl->bytecode);
110111
vm->setProcedures(impl->procedures);
@@ -161,6 +162,7 @@ std::shared_ptr<Thread> Script::start(Target *target)
161162
vm->setVariables(impl->variableValues.data());
162163
vm->setLists(impl->lists.data());
163164
}
165+
#endif
164166

165167
return thread;
166168
}

0 commit comments

Comments
 (0)