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:
parent
b080c50713
commit
35c2ae1cbb
@ -59,7 +59,13 @@ if gzip_fw:
|
|||||||
gzip_switch = ["--gzip", "PIO"]
|
gzip_switch = ["--gzip", "PIO"]
|
||||||
|
|
||||||
env.Append(
|
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++)
|
# General options that are passed to the C compiler (C only; not C++)
|
||||||
CFLAGS=[
|
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'])
|
flatten_cppdefines = env.Flatten(env['CPPDEFINES'])
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user