ISSUE WITH PRE - PROCESSOR DIRECTIVE IN RELEASE MODE

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

ISSUE WITH PRE - PROCESSOR DIRECTIVE IN RELEASE MODE

ソリューションへジャンプ
1,209件の閲覧回数
alok_nigam
Contributor II

I am using S32 Design Studio for ARM Version 2018.R1  , for my project . I have selected s32k146 as my target .

My release configuration is like below pastedImage_1.png

And my test code is like below 

pastedImage_3.png

But defining RELEASE as pre-processor has no effect , code within  RELEASE define is not taking into account for compilation .

Their is one more issue if i use preprocesor directive DEBUG , in debug mode configuration , then in release mode it is also taking into account .

I think this is somekind of bug in s32 studio  .  Please help in fixing this issue .

I am attaching my workspace , as attachment , make build configuration as RELEASE after importing project as it would be in debug by default .

Any help would be appreciated .

1 解決策
1,066件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi.

thank you for report. It looks that only macros for very first configuration are used (debug in your case). Macros for other configurations are ignored. I'll rise ticket for this bug. Thanks again. 

Jiri 

元の投稿で解決策を見る

3 返答(返信)
482件の閲覧回数
claudio_b
Contributor II

Hi, 

I have the same problem with Version: 2.1 Build id: 190624 . How can I solve it?

0 件の賞賛
1,067件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi.

thank you for report. It looks that only macros for very first configuration are used (debug in your case). Macros for other configurations are ignored. I'll rise ticket for this bug. Thanks again. 

Jiri 

1,066件の閲覧回数
ddebaun
Contributor I

Hello,

Was this issue fixed? If so, which release of the tool fixes it?

Thank you!

0 件の賞賛