Andrew Fish




On May 4, 2013, at 11:18 PM, Lee mike <[email protected]> wrote:

> Hi,
> 
> I wrote code to .dsc as below:
> 
> [BuildOptions]
>   MSFT:*_*_*_CC_FLAGS = /D DEBUG1    
>   MSFT:*_*_*_CC_FLAGS = /D DEBUG2
>   MSFT:*_*_*_CC_FLAGS = /D DEBUG3
>   
> The output makefile shows that build.exe (or something else in BaseTools) 
> emits DEBUG3 only.
>   CC_FLAGS = /nologo /FAcs /c /WX /GS- /W4 /Gs32768 /Gy /D UNICODE /O1ib2 /GL 
> /FIAutoGen.h /EHs-c- /GR- /GF /Zi /Gm /D DEBUG3
> 
> Invoking build.exe with '-D S2' to the following code will certainly not 
> generate DEBUG2 too.
> [BuildOptions]
>   MSFT:*_*_*_CC_FLAGS = /D DEBUG1    
> !ifdef $(S2)
>   MSFT:*_*_*_CC_FLAGS = /D DEBUG2
> !endif
>   MSFT:*_*_*_CC_FLAGS = /D DEBUG3
> 
> Any advice?
> 

The spec for the DSC file states:
Two types of assignment operators are permitted, the single equal “=” sign is 
used to append the string to the existing definition, while the double equal 
“==” sign is used to override any previous definition, replacing the content 
with just the string.

So it sounds like you are seeing == behavior? What happens when you use ==?

Thanks,

Andrew Fish

> 
> BR,
> Mike
> 
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
> edk2-buildtools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel

Reply via email to