Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

2019-11-04 Thread Andrew Fish via Groups.Io
l@edk2.groups.io <mailto:devel@edk2.groups.io>; Gao, Liming > mailto:liming@intel.com>> > Cc: tiger...@zhaoxin.com <mailto:tiger...@zhaoxin.com> > Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable > > Liming, > > For gcc/clang if you

Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

2019-11-03 Thread Liming Gao
: tiger...@zhaoxin.com Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Liming, For gcc/clang if you repeat an argument the last argument wins. This is the default behavior and it does not warn, as it is designed to work with features like PcdOptimizeCompilerEnable. If VC++ warns

Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

2019-10-30 Thread Andrew Fish via Groups.Io
t; > [mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io>] On Behalf Of > Tiger Liu(BJ-RD) > Sent: Thursday, October 31, 2019 9:40 AM > To: devel@edk2.groups.io <mailto:devel@edk2.groups.io>; Gao, Liming > mailto:liming....@intel.com>> > Subject: Re: [edk2-deve

Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

2019-10-30 Thread Liming Gao
: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Hi, Liming: Thanks for your explanation. If setting PcdOptimizeCompilerEnable as disable, then will cause D9025 compiling warning. Such as: cl : Command line warning D9025 : overriding '/O1' with '/Od' So, is it ok? Th

Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

2019-10-30 Thread Tiger Liu(BJ-RD)
019年10月30日 23:00 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable NOOPT is build target. It includes the compiler option to disable optimization. If the platform supports NOOPT target, it can be built with -b NOOPT. PcdOptimizeCompilerEnabl

Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

2019-10-30 Thread Liming Gao
. It can also be used for DEBUG or RELEASE target. Thanks Liming From: devel@edk2.groups.io On Behalf Of Tiger Liu(BJ-RD) Sent: Tuesday, October 29, 2019 7:01 PM To: devel@edk2.groups.io Subject: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Hi, All: I have a question about NOOPT and

[edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

2019-10-29 Thread Tiger Liu(BJ-RD)
Hi, All: I have a question about NOOPT and PcdOptimizeCompilerEnable. If Target = NOOPT, then will disable all optimizations. And PcdOptimizeCompilerEnable has the same function. So, What's the relationship between PcdOptimizeCompilerEnable and NOOPT? Thanks Best wishes, ? ???