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.
Hi,
How can I detect the current build setting (e.g. Debug or Release) in the BIOS .cfg script, so that my application is configured differently depending on the setting? In my C code I can use something like #ifdef _DEBUG, but there is no equivalent method that I have found in XDCscript.
Thanks,
-itay
Itay,
Are you talking about CCS Project Configuration or RTSC Build-Profile?
For RTSC Build-Profile: add the following to your .cfg and it will print out a re-build.
print ("Program.build.profile = " + Program.build.profile);
I'm still looking if it is CCS Project Configuration...
Todd
The RTSC build profile is just what I needed. So now I have code that looks like this in my .cfg file:
if (Program.build.profile == "debug")
{
// debug code ..
}
else
{
// release code ..
}
Thanks!
-itay
Todd,
I now have a more complex scenario and would appreciate the ability to detect the CCS project configuration - either directly by name, or by inserting some setting within each configuration that would be detectable in the RTSC config file. Is this possible?
Thanks!
Itay,
For a new question, can you start a new post. It makes management of the forums easier for us.
Todd
Fair enough, see http://e2e.ti.com/support/embedded/bios/f/355/t/235939.aspx .