I've recently had an issue where I need to use a custom build of gcc in order to correctly build .S files (of a certain ISA) in a project.
Obviously, the first thing that comes to mind is creating a custom build script. Unfortunately this script spans across many targets... but my main question is there any way to directly pipe the arguments that would go to gcc into the custom build script? For example in Target "foo" Info -> Rules
Assembly files using script: using: Custom script: /usr/local/bin/gcc_custom (insert normal gcc flags here) With output files ${output_path}/$(INPUT_FILE_BASE].o
Or would I have to write a custom plugin (of which I've seen examples on the web)?
Directly piping in the usual gcc command line parameters would make my life easy, but I suspect this is not the case.
Do I have an easy way out on this one?
Thanks in advance,
- David |