S32DS, Customize Compilation flags for specific file(s)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32DS, Customize Compilation flags for specific file(s)

跳至解决方案
890 次查看
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 项奖励
1 解答
874 次查看
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

在原帖中查看解决方案

2 回复数
875 次查看
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

881 次查看
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 项奖励