This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello all,
I have been using the CDT headless build on CCS5.2 and earlier, but now with 5.5 the clean process fails (it fails to issue the DEL /F command part of the clean, and tries to execute all the object files. I'm not sure why this is happening, but to get support on this, I figured I first had to switch to using the CCS style of the headless builds and it all seems to be working, except...
How do I add a specific compile flag to each file being compiled?
using the CDT eclipse, I just had to add the usual compile "-D <MY_COMPILE_FLAG>" to the command. I tried using the ccs.args <file.txt> where file.txt contained both quoted and unquoted "-D <MY_COMPILE_FLAG>" but that did not work...
Any advise on how to get a compile time flag added to the headless build... I prefer not to have to create another target (I have DEBUG, and RELEASE, and prefer not to have a special target for this flag)
Also, is there a way to do a clean headless build? or do I have to issue the commands separately? (command with "-ccs.buildType clean", followed by another command with "-ccs.buildType full")
Thanks,
-mike
Hi Mike,
Mike52327 said:I tried using the ccs.args <file.txt>
note that ccs.args is for additional CCS headless build options, not project build options.
Mike52327 said:Any advise on how to get a compile time flag added to the headless build...
This is not possible via the CCS headless build commands. if you want to dynamically add additional complier options to the build without modifying the project build properties, you can try specifying a compiler command file (--cmd_file) in the project build properties and then manually modify the command file.
Mike52327 said:Also, is there a way to do a clean headless build?
-ccs.buildType full should be the same as doing a clean+build.
Thanks
ki