S32DS, Customize Compilation flags for specific file(s)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32DS, Customize Compilation flags for specific file(s)

Jump to solution
1,154 Views
Vijay_Arwapally
Contributor III

@nxp 

I am using S32DS for development, (Target S32K148).

Is it possible to control the below compiler flags locally for few files? instead of global? How to achieve this in S32DS?

Vijay_Arwapally_0-1612417260859.png

 

I would like disable pedantic for few files and enable for rest of the files. How to achieve this?

0 Kudos
Reply
1 Solution
1,138 Views
kef2
Senior Contributor V

Hi,

Unless some new S32DS version, indeed it is supported. Right click on any source file, then properties, navigate to compiler or preprocessor options and adjust them like you want. After mods done you should see key symbol above files that have special settings. To reset settings to project common settings right click again, then Resource Configuration -> Reset to default, check files which you want to reset to common settings and hit OK.

 

Regards,

Edward

View solution in original post

2 Replies
1,139 Views
kef2
Senior Contributor V

Hi,

Unless some new S32DS version, indeed it is supported. Right click on any source file, then properties, navigate to compiler or preprocessor options and adjust them like you want. After mods done you should see key symbol above files that have special settings. To reset settings to project common settings right click again, then Resource Configuration -> Reset to default, check files which you want to reset to common settings and hit OK.

 

Regards,

Edward

1,145 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

This is not directly supported in S32DS.

What you can do is to do workaround like create multiple projects (typically few libraries) and the link them to the main project.

Best regards,

Peter

0 Kudos
Reply