We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5761ab commit 9ef89beCopy full SHA for 9ef89be
builder/frameworks/_bare.py
@@ -21,7 +21,12 @@
21
env = DefaultEnvironment()
22
23
env.Append(
24
- ASFLAGS=["-x", "assembler-with-cpp"],
+ ASFLAGS=[
25
+ "-mthumb",
26
+ ],
27
+ ASPPFLAGS=[
28
+ "-x", "assembler-with-cpp",
29
30
31
CCFLAGS=[
32
"-Os", # optimize for size
@@ -54,13 +59,13 @@
54
59
55
60
if "BOARD" in env:
56
61
62
63
+ "-mcpu=%s" % env.BoardConfig().get("build.cpu")
64
57
65
58
66
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
67
],
68
LINKFLAGS=[
69
70
]
71
)
-
-# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
-env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])
0 commit comments