Skip to content

Commit 3689a69

Browse files
ivankravetshasenradball
authored andcommitted
Improve support for hand-written asm source files (esp8266#8583)
1 parent 159f501 commit 3689a69

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tools/platformio-build.py

+7-4
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)