AOT compiling and libraries to link against
Marc Nieper-Wißkirchen
marc.nieper+gnu@gmail.com
Sun Jan 30 15:57:37 GMT 2022
Thank you, Petter!
I missed gcc_jit_context_add_driver_option (and just noticed
gcc_jit_context_add_command_line_option).
@David Malcolm <dmalcolm@redhat.com> The method add_driver_option is also
implemented in the C++ API, but not documented ([1]).
--
[1] https://gcc.gnu.org/onlinedocs/jit/cp/topics/contexts.html#options
Am Sa., 29. Jan. 2022 um 23:26 Uhr schrieb Petter Tomner <tomner@kth.se>:
> The docs are not synced with the addition of
> gcc_jit_context_add_driver_option,
> which allows linking.
>
> You can use:
>
> E.g.
> gcc_jit_context_add_driver_option(ctxt, "obj.o")
> or
> gcc_jit_context_add_driver_option(ctxt, "-L.")
> gcc_jit_context_add_driver_option(ctxt, "-lwhatever")
>
> for that.
>
> Regards,
More information about the Jit
mailing list