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

有帮助吗?

解决方案

You can call ExecutionEngine::DisableSymbolSearching(true) to disable automatically resolving with the linked code.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top