Frage

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

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top