[llvm-dev] LLJIT: Help: how to add a archive?

Francis ANDRE via llvm-dev
Mon, 22 Mar 2021 07:41:19 -0000

Hello everyone

Unless I misunderstood the class LLJIT, there is no function to add a
archive (.lib on Windows or .a on Linux) to the instance of LLJIT, but
one can only add an object  or a IR module. I am trying to JIT the code
below and need this Windows library: legacy_stdio_definitions.lib

HelloWorld.c
extern int printf(char*, ...);
int main() {
    printf("Hello World!\n");
    return 0;
}

What did I miss?

Rdgs

FA


-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20210322/31d26803/attachment.html>