forked from platformio/platformio-core
Substitute LDSCRIPT with real value
This commit is contained in:
@ -129,14 +129,7 @@ def BuildProgram(env):
|
|||||||
|
|
||||||
# append into the beginning a main LD script
|
# append into the beginning a main LD script
|
||||||
if env.get("LDSCRIPT_PATH") and not any("-Wl,-T" in f for f in env["LINKFLAGS"]):
|
if env.get("LDSCRIPT_PATH") and not any("-Wl,-T" in f for f in env["LINKFLAGS"]):
|
||||||
env.Prepend(
|
env.Prepend(LINKFLAGS=["-T", env.subst("$LDSCRIPT_PATH")])
|
||||||
LINKFLAGS=[
|
|
||||||
"-T",
|
|
||||||
env["LDSCRIPT_PATH"]
|
|
||||||
if os.path.isfile(env["LDSCRIPT_PATH"])
|
|
||||||
else "$LDSCRIPT_PATH",
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
# enable "cyclic reference" for linker
|
# enable "cyclic reference" for linker
|
||||||
if env.get("LIBS") and env.GetCompilerType() == "gcc":
|
if env.get("LIBS") and env.GetCompilerType() == "gcc":
|
||||||
|
Reference in New Issue
Block a user