Hi GCC folks,
I have implemented a function for LANG_HOOKS_HANDLE_OPTION for my toy
language front end to handle options.
The specific option is populated in lang.opt as fdemo-debug
My lang-specs file has the following: {"@demo", "demo1 %i
%(cc1_options) %{!fsyntax-only:%(invoke_as)}", 0, 1, 0}
Taking inspiration from
https://github.com/FreddieChopin/bleeding-edge-toolchain, I have a
script which runs:
../../source/${dname}/configure \
--target=${TARGET} \
--enable-languages=c \
--without-headers \
--prefix=`realpath ../../${DIR_PREFIX}` \
--li