From nobody Tue Feb 10 06:58:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+100295+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+100295+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1676605886; cv=none; d=zohomail.com; s=zohoarc; b=Eejpf9whm0HfL3tslNdaH8hHCHNIbO2oBZz2s9ko7Ua+xTz6MjyQ0zTUBPjvA+uS2YY1hBM6gJ4omk/pzKcSZ92dUayUepEaLQijAuzG65g77tK8FQWS57oXJDlaFnxEkOClqOF2WxefnSwjeEMxhc9XsX7ta+VZP5AcCxoh0ds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676605886; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Ds6PlAucXbXcSC7o0VHQxncvLV0uWx/0RhcN2jLAfoc=; b=HjVoPR3dD5j73DJn6kRdXv6ovm+OQD02L5o9Imv08nf+QQHqfkKcCkQlJhmBNMiNKmp6eFT5GdH5h0HWEQmPcrmp265hbOFECIilqSzGTriugPTl+Dm/V6wLQFKr3ZQh3bBqN4k4yss/C7P1cC9ExJRULRj9nwINLxOGKu8uMzo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+100295+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1676605886813795.8169474239372; Thu, 16 Feb 2023 19:51:26 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id LIDTYY1788612xWcw9ljGmFB; Thu, 16 Feb 2023 19:51:26 -0800 X-Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.web11.31084.1676605885815720148 for ; Thu, 16 Feb 2023 19:51:25 -0800 X-Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31H2b2A9025227; Fri, 17 Feb 2023 03:51:17 GMT X-Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ns0hkn3vv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 03:51:16 +0000 X-Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31H3pGOi016390 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 03:51:16 GMT X-Received: from linbox.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 16 Feb 2023 19:51:15 -0800 From: "Rebecca Cran" To: , Andrew Fish , Leif Lindholm , Michael D Kinney , Bob Feng , Liming Gao , "Yuwei Chen" CC: Rebecca Cran Subject: [edk2-devel] [PATCH 3/3] BaseTools: Build against C++14 when building with clang Date: Thu, 16 Feb 2023 20:51:01 -0700 Message-ID: <20230217035101.880854-4-rebecca@quicinc.com> In-Reply-To: <20230217035101.880854-1-rebecca@quicinc.com> References: <20230217035101.880854-1-rebecca@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-ORIG-GUID: R0CZXMQN1ZhloiWubsTijVZn-EUjgGYV X-Proofpoint-GUID: R0CZXMQN1ZhloiWubsTijVZn-EUjgGYV Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,quic_rcran@quicinc.com X-Gm-Message-State: pwrhc6s8OdEUfd0fOioPcWo7x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1676605886; bh=ZWR/KE41dm+fdcWl291iL7ADoFFMOiHSlzEARHrhk0E=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=AMUi6DpWdkqqIjpS/zw39VcPhvEagwQW5FdVF8Fn2zQ4x+nBZRmmCR8zspVz9YaCU1H o7SxRUg5AnADNyrXAP9dqN3x7L/oy5HEzWKd0pMMAKeRCYcin7qrJbaH9M7Gc81hVVkHT H9uD29/d4jyPfpAHQ+ezCIevd7Gfl6m7fZM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1676605887190100001 Content-Type: text/plain; charset="utf-8" clang 17 defaults to C++17, where the 'register' keyword is deprecated and the warning changed to an error. To avoid build errors, compile against C++14 by specifying '-std=3Dc++14' in CXXFLAGS. Signed-off-by: Rebecca Cran Acked-by: Gerd Hoffmann --- BaseTools/Source/C/Makefiles/header.makefile | 2 +- BaseTools/Source/C/VfrCompile/GNUmakefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/C/Makefiles/header.makefile b/BaseTools/Sourc= e/C/Makefiles/header.makefile index bcc2791998b0..1bf003523baf 100644 --- a/BaseTools/Source/C/Makefiles/header.makefile +++ b/BaseTools/Source/C/Makefiles/header.makefile @@ -106,7 +106,7 @@ endif endif ifneq ($(CLANG),) LDFLAGS =3D -CXXFLAGS =3D -Wno-deprecated-register -Wno-unused-result +CXXFLAGS =3D -Wno-deprecated-register -Wno-unused-result -std=3Dc++14 else LDFLAGS =3D CXXFLAGS =3D -Wno-unused-result diff --git a/BaseTools/Source/C/VfrCompile/GNUmakefile b/BaseTools/Source/C= /VfrCompile/GNUmakefile index fdd19f55f77e..7d851c38887c 100644 --- a/BaseTools/Source/C/VfrCompile/GNUmakefile +++ b/BaseTools/Source/C/VfrCompile/GNUmakefile @@ -23,7 +23,7 @@ else VFR_CPPFLAGS =3D -DPCCTS_USE_NAMESPACE_STD $(CPPFLAGS) endif # keep BUILD_OPTFLAGS last -VFR_CXXFLAGS =3D $(BUILD_OPTFLAGS) +VFR_CXXFLAGS =3D $(BUILD_OPTFLAGS) -std=3Dc++14 =20 # keep EXTRA_LDFLAGS last VFR_LFLAGS =3D $(EXTRA_LDFLAGS) --=20 2.30.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100295): https://edk2.groups.io/g/devel/message/100295 Mute This Topic: https://groups.io/mt/97022150/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-