1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Improve support for hand-written asm source files (#8583)

This commit is contained in:
Ivan Kravets 2022-05-28 20:56:13 +03:00 committed by GitHub
parent b080c50713
commit 35c2ae1cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,13 @@ if gzip_fw:
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=[
@ -166,9 +172,6 @@ env.Append(
)
)
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])
flatten_cppdefines = env.Flatten(env['CPPDEFINES'])
#