mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 08:27:56 +06:00
Fix up Arm builds with nix-shell. (#8312)
This commit is contained in:
parent
bad9468ce1
commit
b438c6f8ea
|
@ -45,6 +45,6 @@ stdenv.mkDerivation {
|
||||||
++ lib.optional arm [ gcc-arm-embedded ]
|
++ lib.optional arm [ gcc-arm-embedded ]
|
||||||
++ lib.optional teensy [ teensy-loader-cli ];
|
++ lib.optional teensy [ teensy-loader-cli ];
|
||||||
|
|
||||||
CFLAGS = lib.optional avr avr_incflags;
|
AVR_CFLAGS = lib.optional avr avr_incflags;
|
||||||
ASFLAGS = lib.optional avr avr_incflags;
|
AVR_ASFLAGS = lib.optional avr avr_incflags;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,9 @@ COMPILEFLAGS += -fdata-sections
|
||||||
COMPILEFLAGS += -fpack-struct
|
COMPILEFLAGS += -fpack-struct
|
||||||
COMPILEFLAGS += -fshort-enums
|
COMPILEFLAGS += -fshort-enums
|
||||||
|
|
||||||
CFLAGS += $(COMPILEFLAGS)
|
ASFLAGS += $(AVR_ASFLAGS)
|
||||||
|
|
||||||
|
CFLAGS += $(COMPILEFLAGS) $(AVR_CFLAGS)
|
||||||
CFLAGS += -fno-inline-small-functions
|
CFLAGS += -fno-inline-small-functions
|
||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user