Skip to content

Commit b438c6f

Browse files
authoredMar 6, 2020
Fix up Arm builds with nix-shell. (qmk#8312)
1 parent bad9468 commit b438c6f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎shell.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ stdenv.mkDerivation {
4545
++ lib.optional arm [ gcc-arm-embedded ]
4646
++ lib.optional teensy [ teensy-loader-cli ];
4747

48-
CFLAGS = lib.optional avr avr_incflags;
49-
ASFLAGS = lib.optional avr avr_incflags;
48+
AVR_CFLAGS = lib.optional avr avr_incflags;
49+
AVR_ASFLAGS = lib.optional avr avr_incflags;
5050
}

‎tmk_core/avr.mk

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ COMPILEFLAGS += -fdata-sections
2121
COMPILEFLAGS += -fpack-struct
2222
COMPILEFLAGS += -fshort-enums
2323

24-
CFLAGS += $(COMPILEFLAGS)
24+
ASFLAGS += $(AVR_ASFLAGS)
25+
26+
CFLAGS += $(COMPILEFLAGS) $(AVR_CFLAGS)
2527
CFLAGS += -fno-inline-small-functions
2628
CFLAGS += -fno-strict-aliasing
2729

0 commit comments

Comments
 (0)
Please sign in to comment.