ISSUE WITH PRE - PROCESSOR DIRECTIVE IN RELEASE MODE

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

ISSUE WITH PRE - PROCESSOR DIRECTIVE IN RELEASE MODE

跳至解决方案
1,159 次查看
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,016 次查看
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 回复数
432 次查看
claudio_b
Contributor II

Hi, 

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

0 项奖励
1,017 次查看
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,016 次查看
ddebaun
Contributor I

Hello,

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

Thank you!

0 项奖励