Skip to content

Commit

Permalink
Improve support for hand-written asm source files
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed May 28, 2022
1 parent 9ccf590 commit 7405b8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions builder/frameworks/_bare.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
env = DefaultEnvironment()

env.Append(
ASFLAGS=["-x", "assembler-with-cpp"],
ASFLAGS=[
"-mthumb",
],
ASPPFLAGS=[
"-x", "assembler-with-cpp",
],

CCFLAGS=[
"-Os", # optimize for size
Expand Down Expand Up @@ -54,13 +59,13 @@

if "BOARD" in env:
env.Append(
ASFLAGS=[
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
],
CCFLAGS=[
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
],
LINKFLAGS=[
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
]
)

# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])
2 changes: 1 addition & 1 deletion builder/frameworks/arduino
Submodule arduino updated 3 files
+15 −19 adafruit.py
+1 −1 mbed-core
+1 −5 nrf5.py

0 comments on commit 7405b8b

Please sign in to comment.