From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web08.33140.1649064770292984484 for ; Mon, 04 Apr 2022 02:32:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZUuozipb; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649064768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cBWvsM1svgbgGrWTzUEhbaRWeuel9gTg2IwlasglqYs=; b=ZUuozipbVQetqyL4A0u0mAewQVzOqWO088zicabNo2U/kpngBnPLJhwAkxI2zYJ+52igma MjtLveqcecZJTD63BOhdoAdf/9sI2eLk+ZOefFG2GUKmP0ZtzxEeLbfMYTJt6cuMl6hM9d 5cXf5UxAGP2O0PP1saBfwAfvm0g5nW4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-592-1xQSpTVKNTOLlwxCtQ2Lew-1; Mon, 04 Apr 2022 05:32:45 -0400 X-MC-Unique: 1xQSpTVKNTOLlwxCtQ2Lew-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 45A9D899EC4; Mon, 4 Apr 2022 09:32:45 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.194.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7DB2D2156732; Mon, 4 Apr 2022 09:32:31 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E7E48180039D; Mon, 4 Apr 2022 11:32:29 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Yuwei Chen , Liming Gao , Pawel Polawski , Bob Feng , Oliver Steffen , Rebecca Cran , Gerd Hoffmann Subject: [PATCH v3 0/3] BaseTools: fix gcc workaround Date: Mon, 4 Apr 2022 11:32:26 +0200 Message-Id: <20220404093229.1971782-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit The linux kernel has a bunch of useful macros to check whenever a given compiler supports specific flags. Import them, adapt them for edk2, then put them into use to make both gcc5 and gcc12 work for BaseTools. Gerd Hoffmann (3): BaseTools: import compiler check macros from linux kernel BaseTools: adapt comniler checks mmacros for edk2 BaseTools: fix gcc workaround BaseTools/Source/C/DevicePath/GNUmakefile | 3 +- .../Source/C/Makefiles/compiler.makefile | 76 +++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 BaseTools/Source/C/Makefiles/compiler.makefile -- 2.35.1