I would like to invoke the compiler in batch mode passing all the options from a single text file, for example:
chc08.exe -options_file ComOpt.txt
I searched the documentation and the forum but I couldn't find a way to do this. Is it possible as far as you know ?
I cannot pass all the options directly on the command line because in some projects we have a large number of included paths and this leads to exceeding the limit of characters for a windows command line.
Thanks,
Matteo
Hello Italiandoh,
If you use CodeWarrior for MCUs v10.x (Eclipse) you can use -ArgFile
Considering that a file named option.txt is used then chc08.exe –ArgFileoption.txt command line.
In the CodeWarrior for MCUs v6.x (Classic) the following environment variables can be used to pass additional command line options:
* COMPOPTIONS: additional compiler options
* GENPATH: #include "File" Path
* LIBRARYPATH: 'include <File>' Path
* TEXTPATH: Text File Path
* ABSPATH: Absolute Path
* LINKOPTIONS: Default SmartLinker Options
* OBJPATH: Object File Path
Stanish
Hi Stanish,
thank you for your reply. Unfortunately I'm using Codewarrior for Microcontrollers V.6.2, so from what you're saying I see there isn't really a solution for my problem.
Bye,
Matteo