Page 1 of 1
Individual file settings
Posted: Wed Mar 21, 2018 10:11 am
by BillyBag2
How do I set individual file setting? I can change settings in the makefile command line. But I want to debug some files but leave others optimised. How can I set different options for different files?
Re: Individual file settings
Posted: Thu Mar 22, 2018 10:41 am
by robertxmos
Hi BillyBag
Would the following do what you want?
XCC_FLAGS_filename
Overides the flags passed to xcc for the filename specified. This option overides the flags for all build configurations.
see
https://www.xmos.com/support/tools/othe ... nent=14789 for more options.
robert
Re: Individual file settings
Posted: Thu Mar 22, 2018 4:37 pm
by BillyBag2
Thanks, this worked great. Added by hand to makefile but then it appears in the wizard after that. Also set VERBOSE to 1 to see the command line being used.
Re: Individual file settings
Posted: Thu Mar 22, 2018 4:59 pm
by robertxmos
FYI
The 'VERBOSE' allow you to see what the make systems is doing - can be a bit noisy.
The alternative is to add '-v' or '--verbose' to your XC_flags - this list all the compilation steps (that you could do manually!)