Hi.
I've been told on IRC to use specs to achieve some of the things I want
to do in libgccjit (for instance, instead of calling
host_detect_local_cpu which doesn't exist when cross-compiling).
I've been having some issues to do so.
Can I only call do_spec in specific places?
It works OK in lang_specific_pre_link, but I get a segfault in a jit
target hook. (I guess this could again be a bug with global variables in
libgccjit)
The second issue I have is how can I extract the information I want from
the spec I evaluate?
For instance, how could I get the file found by this:
do_spec("%:find-file(lto1)")
?
do_spec only returns an int, so do I need to call some other function?
Thanks for your help.