S32DS, Customize Compilation flags for specific file(s)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32DS, Customize Compilation flags for specific file(s)

ソリューションへジャンプ
889件の閲覧回数
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 解決策
873件の閲覧回数
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 返答(返信)
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

880件の閲覧回数
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 件の賞賛