From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::441; helo=mail-pf1-x441.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 62B432119072C for ; Wed, 14 Nov 2018 18:34:23 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id u3-v6so6218595pfm.4 for ; Wed, 14 Nov 2018 18:34:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yUsJBnpNV0S0mHaeoizJbp5uUiwaNAyn3UY7WtKL3c0=; b=aq7GwpI4SYRCvRYVrvmFUTvgHwo57l0o9V5df0qO5Ke6eGvpMs8VVu5VjSZRrXUiEs OQpU7ovycW5f8jButXU+3QUIlSKnTE/RzjyE2rCyZNVJi5iWTuUKG0Tj0Ei9lAa0Q1jR hJ80N3QlmjetZ6l/uJZRXyApeMSJE7KmokyI0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yUsJBnpNV0S0mHaeoizJbp5uUiwaNAyn3UY7WtKL3c0=; b=rx6yjieDTENPRgNZeEQgMWY764PBmGWUqZ44iYEVhZDu67UP9T92aGHyEZh+8Y4EGz bv2nyAGAZIUz6kyyHWCOe6Bc0iqkbueTtkybYi1IcjxzGslofDC/ah/uABtLieNq2QCg c276qMnUEr1vGg/rLNxX81YbE1Y7kdIdUDuWrrfOLBvMyNL5Zl28eeTD/zW+Y/1aQ8JM O86SnAFdhnrbioZgIBXS5g2mACLUeaISK9tELYGnHHJNEZXVXmpy33BJvWDahBeRELE1 cGnpPAgEKzaKTkGhJJdOZU3QXR5oBvHrA5WteJs0Bd3ZMgVsYxa0mIRjavOS9FAuRTt1 zWRw== X-Gm-Message-State: AGRZ1gIQbjQOqTZwuT8+z+Q8b7tt3zJP9rvXNR41L1EIGrjt9nXR7gr9 fJzfYhoHgshxiNyO9/uzX0RgxknUO8hZsg== X-Google-Smtp-Source: AJdET5f9RE9umBCxG1t5nIynjscfQ7uD4Y59uWXOd2N1UaC5KnJ7yNY2yM15GKOnt2VS54141+5FVg== X-Received: by 2002:a63:63c3:: with SMTP id x186mr4106036pgb.330.1542249262854; Wed, 14 Nov 2018 18:34:22 -0800 (PST) Received: from mba13.psav.com ([64.114.255.97]) by smtp.gmail.com with ESMTPSA id v185-v6sm27323393pfv.48.2018.11.14.18.34.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:22 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, maciej.rabeda@intel.com, kamil.kacperski@intel.com, pawel.orlowski@intel.com, philmd@redhat.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com, eric.jin@intel.com, Ard Biesheuvel Date: Wed, 14 Nov 2018 18:33:51 -0800 Message-Id: <20181115023353.20159-19-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181115023353.20159-1-ard.biesheuvel@linaro.org> References: <20181115023353.20159-1-ard.biesheuvel@linaro.org> Subject: [PATCH edk2-staging 18/20] IntelUndiPkg/XGigUndiDxe: set MDEPKG_NDEBUG only for RELEASE builds X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2018 02:34:23 -0000 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 --- IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf index b5747565fbea..e3201fb9881f 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 -- 2.17.1