Hi Hoffmann,

I received some reports that some platforms are using gcc5.4. With this patch, 
these platform builds are still broken.
Would you like to revert the original commits?

Thanks,
Christine (Yuwei)

> -----Original Message-----
> From: Gerd Hoffmann <kra...@redhat.com>
> Sent: Tuesday, March 29, 2022 4:38 PM
> To: devel@edk2.groups.io
> Cc: Feng, Bob C <bob.c.f...@intel.com>; Rebecca Cran
> <rebe...@bsdio.com>; Pawel Polawski <ppola...@redhat.com>; Oliver
> Steffen <ostef...@redhat.com>; Chen, Christine <yuwei.c...@intel.com>;
> Gao, Liming <gaolim...@byosoft.com.cn>; Gerd Hoffmann
> <kra...@redhat.com>
> Subject: [PATCH v2 1/1] Basetools: fix gcc workaround
> 
> Apply the workaround only in case the compiler is gcc.
> Fixes builds with clang.
> 
> Fixes: 22130dcd98b4 ("Basetools: turn off gcc12 warning")
> Reported-by: Rebecca Cran <rebe...@bsdio.com>
> Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
> ---
>  BaseTools/Source/C/DevicePath/GNUmakefile | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile
> b/BaseTools/Source/C/DevicePath/GNUmakefile
> index b05d2bddfa68..6323e7355cc8 100644
> --- a/BaseTools/Source/C/DevicePath/GNUmakefile
> +++ b/BaseTools/Source/C/DevicePath/GNUmakefile
> @@ -13,8 +13,10 @@ OBJECTS = DevicePath.o UefiDevicePathLib.o
> DevicePathFromText.o  DevicePathUtili
> 
>  include $(MAKEROOT)/Makefiles/app.makefile
> 
> +ifneq ($(CXX), llvm)
>  # gcc 12 trips over device path handling  BUILD_CFLAGS += -Wno-
> error=stringop-overflow
> +endif
> 
>  LIBS = -lCommon
>  ifeq ($(CYGWIN), CYGWIN)
> --
> 2.35.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#88278): https://edk2.groups.io/g/devel/message/88278
Mute This Topic: https://groups.io/mt/90104204/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to