Skip to content

Commit 9fce4a3

Browse files
committed
Fix default assembler flags when building project without any framework
1 parent 280553b commit 9fce4a3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

builder/frameworks/_bare.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
env = DefaultEnvironment()
2222

2323
env.Append(
24-
ASPPFLAGS=["-x", "assembler-with-cpp"],
24+
ASFLAGS=[
25+
"-mthumb",
26+
],
27+
ASPPFLAGS=[
28+
"-x", "assembler-with-cpp",
29+
],
2530

2631
CCFLAGS=[
2732
"-Os", # optimize for size
@@ -51,6 +56,9 @@
5156

5257
if "BOARD" in env:
5358
env.Append(
59+
ASFLAGS=[
60+
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
61+
],
5462
CCFLAGS=[
5563
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
5664
],

0 commit comments

Comments
 (0)