mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 02:30:07 +00:00
Fix bitfield problem when compiling in native mingw
This commit is contained in:
parent
78545b9509
commit
7f67abd7d7
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
SYSTEM_TYPE := $(shell gcc -dumpmachine)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
OBJCOPY =
|
OBJCOPY =
|
||||||
OBJDUMP =
|
OBJDUMP =
|
||||||
|
@ -14,6 +16,9 @@ COMPILEFLAGS += -funsigned-bitfields
|
||||||
COMPILEFLAGS += -ffunction-sections
|
COMPILEFLAGS += -ffunction-sections
|
||||||
COMPILEFLAGS += -fdata-sections
|
COMPILEFLAGS += -fdata-sections
|
||||||
COMPILEFLAGS += -fshort-enums
|
COMPILEFLAGS += -fshort-enums
|
||||||
|
ifneq ($(findstring mingw, ${SYSTEM_TYPE}),)
|
||||||
|
COMPILEFLAGS += -mno-ms-bitfields
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS += $(COMPILEFLAGS)
|
CFLAGS += $(COMPILEFLAGS)
|
||||||
CFLAGS += -fno-inline-small-functions
|
CFLAGS += -fno-inline-small-functions
|
||||||
|
|
Loading…
Reference in a new issue