diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-07-11 22:05:01 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-07-11 22:05:01 +0300 |
commit | 7f67abd7d7f5d393894a34faba51108301381266 (patch) | |
tree | cb47e3ef98c6ff4e4fdd89ece8da8187a344ffc8 /tmk_core/native.mk | |
parent | 78545b95090816767bf3e17c4745bb0c3db01a5f (diff) | |
download | qmk_firmware-7f67abd7d7f5d393894a34faba51108301381266.tar.gz qmk_firmware-7f67abd7d7f5d393894a34faba51108301381266.zip |
Fix bitfield problem when compiling in native mingw
Diffstat (limited to 'tmk_core/native.mk')
-rw-r--r-- | tmk_core/native.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/native.mk b/tmk_core/native.mk index 50232ee9b..530b50b84 100644 --- a/tmk_core/native.mk +++ b/tmk_core/native.mk | |||
@@ -1,3 +1,5 @@ | |||
1 | SYSTEM_TYPE := $(shell gcc -dumpmachine) | ||
2 | |||
1 | CC = gcc | 3 | CC = gcc |
2 | OBJCOPY = | 4 | OBJCOPY = |
3 | OBJDUMP = | 5 | OBJDUMP = |
@@ -14,6 +16,9 @@ COMPILEFLAGS += -funsigned-bitfields | |||
14 | COMPILEFLAGS += -ffunction-sections | 16 | COMPILEFLAGS += -ffunction-sections |
15 | COMPILEFLAGS += -fdata-sections | 17 | COMPILEFLAGS += -fdata-sections |
16 | COMPILEFLAGS += -fshort-enums | 18 | COMPILEFLAGS += -fshort-enums |
19 | ifneq ($(findstring mingw, ${SYSTEM_TYPE}),) | ||
20 | COMPILEFLAGS += -mno-ms-bitfields | ||
21 | endif | ||
17 | 22 | ||
18 | CFLAGS += $(COMPILEFLAGS) | 23 | CFLAGS += $(COMPILEFLAGS) |
19 | CFLAGS += -fno-inline-small-functions | 24 | CFLAGS += -fno-inline-small-functions |