Skip to content

Commit

Permalink
Improve support for hand-written asm source files (#8583)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed May 28, 2022
1 parent b080c50 commit 35c2ae1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tools/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ def scons_patched_match_splitext(path, suffixes=None):
gzip_switch = ["--gzip", "PIO"]

env.Append(
ASFLAGS=["-x", "assembler-with-cpp"],
ASFLAGS=[
"-mlongcalls",
"-mtext-section-literals",
],
ASPPFLAGS=[
"-x", "assembler-with-cpp",
],

# General options that are passed to the C compiler (C only; not C++)
CFLAGS=[
Expand Down Expand Up @@ -166,9 +172,6 @@ def scons_patched_match_splitext(path, suffixes=None):
)
)

# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])

flatten_cppdefines = env.Flatten(env['CPPDEFINES'])

#
Expand Down

0 comments on commit 35c2ae1

Please sign in to comment.