[SOLVED] Setting build options per file

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

  • [SOLVED] Setting build options per file

    It seems not possible to set build options / compile options per-file ?


    It doesn't even seem possible to set it per folder - either dynamic or not.

    (I feel this is a disadvantage relative to Eclipse).
  • Hello,

    Thank you for your inquiry.

    You can set build options for each file individually under option External Build-> C Compile Command for example for C files.
    On folder level this is not possible currently but might be added in future.

    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.
  • Hello,

    yes you can, picture attached.
    Simply right click the file you want to set the option for and select Edit Options...

    Best regards,
    Nino
    Images
    • Capture.PNG

      29.25 kB, 1,106×631, viewed 382 times
    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.
  • Hello,

    Great to hear that it is working for you as well.
    We will consider this thread as closed now.

    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.