You can call ExecutionEngine::DisableSymbolSearching(true)
to disable automatically resolving with the linked code.
LLVM JIT : how to disable automatic function resolve?
Question
I was surprised to see that adding an a-priori non defined "double sin(double)" function in a C code that is JIT'ed actually worked... This is explained in LLVM doc, the JIT engine automatically falls back to dlsym("sin") which works as my code was linked with libm
However, I want to avoid this and have no built-in function in my JIT'ed code! How can I disable this behavior?
Thanks
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow