Skip to content

Commit 35c2ae1

Browse files
authored
Improve support for hand-written asm source files (#8583)
1 parent b080c50 commit 35c2ae1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tools/platformio-build.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ def scons_patched_match_splitext(path, suffixes=None):
5959
gzip_switch = ["--gzip", "PIO"]
6060

6161
env.Append(
62-
ASFLAGS=["-x", "assembler-with-cpp"],
62+
ASFLAGS=[
63+
"-mlongcalls",
64+
"-mtext-section-literals",
65+
],
66+
ASPPFLAGS=[
67+
"-x", "assembler-with-cpp",
68+
],
6369

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

169-
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
170-
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])
171-
172175
flatten_cppdefines = env.Flatten(env['CPPDEFINES'])
173176

174177
#

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy