summaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorThat-Canadian <poole.chris.11@gmail.com>2017-07-15 03:34:37 +0200
committerThat-Canadian <poole.chris.11@gmail.com>2017-07-15 03:34:37 +0200
commit5412229603c1b16051776e81bed57697adf339e2 (patch)
tree088e5e6d1d0d448f0e5c4032a830c27b33a126ab /tmk_core
parentd73d30aa846f4378b8f1fa072a4620520b3c1953 (diff)
parent6ed8ce4f598f838b971aa290a499f852827e1b58 (diff)
downloadqmk_firmware-5412229603c1b16051776e81bed57697adf339e2.tar.gz
qmk_firmware-5412229603c1b16051776e81bed57697adf339e2.tar.xz
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/native.mk5
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 @@
+SYSTEM_TYPE := $(shell gcc -dumpmachine)
+
CC = gcc
OBJCOPY =
OBJDUMP =
@@ -14,6 +16,9 @@ COMPILEFLAGS += -funsigned-bitfields
COMPILEFLAGS += -ffunction-sections
COMPILEFLAGS += -fdata-sections
COMPILEFLAGS += -fshort-enums
+ifneq ($(findstring mingw, ${SYSTEM_TYPE}),)
+COMPILEFLAGS += -mno-ms-bitfields
+endif
CFLAGS += $(COMPILEFLAGS)
CFLAGS += -fno-inline-small-functions