[SOLVED] How to include few files only in debug configuration

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] How to include few files only in debug configuration

    Hi,

    In my emProject file, how can I include few files only when in debug configuration?

    e.g if I have file1.c, file2.c and file3.c then this is what I want:

    Release configuration -> build file1.c and file2.c
    Debug configuration -> build file1.c, file2.c and file3.c

    How can I achieve that?

    Thanks
    Ankur
  • Hello Ankur,

    Thank you for your inquiry.
    You can right click individual files and select "exclude from build".
    So if you have the "Debug" configuration active this file will now be excluded from Debug builds.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.