util/cbfstool: Enable "ms-extensions" compiler flag on mingw only
The flag activates some Win32 compatibility quirks and on clang/openbsd it enables so many of them that the code doesn't compile anymore. Therefore move it into the "Win32 area" in that Makefile. Change-Id: Ic77c04941e40a568f1d74cec09eb3d22a66e69b0 Signed-off-by: Patrick Georgi <patrick@coreboot.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78724 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
9a1b47e8a0
commit
3d295a9afb
|
@ -134,9 +134,9 @@ TOOLCPPFLAGS += -I$(top)/src
|
|||
TOOLCPPFLAGS += -I$(top)/src/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include
|
||||
|
||||
TOOLLDFLAGS ?=
|
||||
HOSTCFLAGS += -fms-extensions
|
||||
|
||||
ifeq ($(shell uname -s | cut -c-7 2>/dev/null), MINGW32)
|
||||
HOSTCFLAGS += -fms-extensions
|
||||
TOOLCFLAGS += -mno-ms-bitfields
|
||||
endif
|
||||
ifeq ($(shell uname -o 2>/dev/null), Cygwin)
|
||||
|
|
Loading…
Reference in New Issue