Skip to content

Commit 886f388

Browse files
committed
Improve support for assembly programming
1 parent de59b73 commit 886f388

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

builder/frameworks/_bare.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
Import("env")
2222

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

2631
CFLAGS=["-std=gnu99"],
2732

@@ -60,6 +65,3 @@
6065
"-Wl,--gc-sections"
6166
]
6267
)
63-
64-
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
65-
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])

builder/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ def __fetch_fs_size(target, source, env):
227227
env.Replace(PROGNAME="firmware")
228228

229229
env.Append(
230-
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
231-
ASFLAGS=env.get("CCFLAGS", [])[:],
232-
233230
BUILDERS=dict(
234231
ElfToBin=Builder(
235232
action=env.VerboseAction(" ".join([

0 commit comments

Comments
 (0)