Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 1233092

Browse files
committed
Fix issue with assembly preprocessor flags
1 parent 984c4a2 commit 1233092

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builder/frameworks/arduino.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
assert os.path.isdir(FRAMEWORK_DIR)
4141

4242
env.Append(
43+
ASPPFLAGS=["-x", "assembler-with-cpp"],
44+
4345
CPPDEFINES=[
4446
("ARDUINO", 10815),
4547
"ARDUINO_ARCH_%s" % arch.upper(),
@@ -94,7 +96,6 @@
9496
)
9597

9698
env.Prepend(
97-
ASFLAGS=env.get("CCFLAGS", [])[:],
9899
_LIBFLAGS='"%s" '
99100
% (
100101
os.path.join(CORE_DIR, "asr6601.a")
@@ -232,3 +233,7 @@
232233
)
233234

234235
env.Prepend(LIBS=libs)
236+
237+
# Duplicate preprocessor flags to the assembler
238+
# for '.S', '.spp', '.SPP', '.sx' source files
239+
env.Append(ASPPFLAGS=env.get("CCFLAGS", []))

0 commit comments

Comments
 (0)