Article Add/Remove switches via CCES console program

Question:

How can I add or remove tool switches via command-line build support?

Answer:
We can use "-append-switch, -remove-switch and -replace-switch" options to add, remove and change tool switches of a project.

For Ex., Use -D Preprocessor definition as below.

-cfg Debug -append-switch compiler -D=MACRO_TO_ADD

Here to DO_CYCLE_COUNTS macro in preprocessor command, use as like below.

ccesc.exe -nosplash -application com.analog.crosscore.headlesstools -data E:/workspace -project "..\cyc\testcyc" -cfg Debug -append-switch compiler -D=DO_CYCLE_COUNTS

-remove-switch -> Removes a tool option. Whitespace is not allowed to be in the middle of the switch name.

e.g.: -cfg Debug -remove-switch linker -e

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.