Friday, May 25th 2018, 10:48am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

1

Saturday, February 10th 2018, 10:45am

[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).

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,059

2

Wednesday, February 14th 2018, 12:11pm

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: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
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 contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

3

Saturday, March 3rd 2018, 5:26am

Hello,

I don't see how this is possible.
External Build-> C Compile Command is a project level configuration setting.



Per-file, (checking file options) has no such option.

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,059

4

Monday, March 5th 2018, 8:55am

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
SEGGER - Nino has attached the following image:
  • Capture.PNG
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
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 contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

5

Tuesday, March 6th 2018, 2:22pm

Yes indeed.

Thanks !

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,059

6

Wednesday, March 7th 2018, 2:57pm

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: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
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 contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/