Georg Lay a...@gjlay.de writes:
Moreover, there will be a problem because the C function that actually
implements my_record_switches must return a string starting with '-',
there is no way to return or NULL to indicate that the function won't
produce anything.
I would consider writing
Hi, when calling gcc with -frecord-gcc-switch the options passed to cc1
will differ depending on if -save-temps is present or not. E.g. if
calling gcc foo.c -I Z -DX=... -UY ...
in the forst case (with -save-temps) options_passed is: -fpreprocessed
foo.i ...
in the second case (without