문제

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