[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about header file parsing



Am Di., 8. Jan. 2019 um 22:16 Uhr schrieb Basile Starynkevitch
<basile@starynkevitch.net>:

[...]

> Still another thing could be to use LTO: you'll compile your C file with
> GCC using -flto, you'll do LIBGCCJIT things, and the final executable
> sould be compiled and linked with -flto.

Is using:

gcc_jit_context_add_command_line_option (ctxt, "-flto helper.o");

supported to have the object generated by libgccjit statically linked
with the object helper.o before libgccjit emits the final dynamic
library? (Let's assume that helper.o has been compiled with -flto.)

[...]

-- Marc