diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-11-14 17:07:41 -0800 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-11-14 18:29:40 -0800 |
commit | a1984bd5ad59b471bca59be7b985dd7a05fe8169 (patch) | |
tree | 268783ec7cdf5b3850e6777f71bab095ac7c806a | |
parent | 49f7c8900b295756c377dea1b583aea44fdc5e09 (diff) |
IntelUndiPkg/XGigUndiDxe: set MDEPKG_NDEBUG only for RELEASE builds
Only define the CPP macro MDEPKG_NDEBUG for the RELEASE target so
that debug features are functional otherwise.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
-rw-r--r-- | IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf index b5747565f..e3201fb98 100644 --- a/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf +++ b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf @@ -44,7 +44,8 @@ UNLOAD_IMAGE = UnloadXGigUndiDriver [BuildOptions.common] -MSFT:*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG /D UNDI_10G /wd4244 /wd4206 /wd4189 +MSFT:*_*_*_CC_FLAGS = /FAcs /D UNDI_10G /wd4244 /wd4206 /wd4189 +MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG GCC:*_*_*_CC_FLAGS = -DUNDI_10G GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG |