Fixed an issue with linking process when `$LDSCRIPT` contains a space in path

This commit is contained in:
Ivan Kravets
2019-10-17 16:52:18 +03:00
parent 89843c0d65
commit 7bcfea13fb
3 changed files with 4 additions and 2 deletions

View File

@ -25,6 +25,7 @@ PlatformIO Core 4.0
* Fixed default PIO Unified Debugger configuration for `J-Link probe <http://docs.platformio.org/page/plus/debug-tools/jlink.html>`__
* Fixed an issue when configuration file options partly ignored when using custom ``--project-conf`` (`issue #3034 <https://github.com/platformio/platformio-core/issues/3034>`_)
* Fixed an issue when installing a package using custom Git tag and submodules were not updated correctly (`issue #3060 <https://github.com/platformio/platformio-core/issues/3060>`_)
* Fixed an issue with linking process when ``$LDSCRIPT`` contains a space in path
4.0.3 (2019-08-30)
~~~~~~~~~~~~~~~~~~

View File

@ -130,7 +130,7 @@ def BuildProgram(env):
# 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"]):
env.Prepend(LINKFLAGS=["-T", "$LDSCRIPT_PATH"])
env.Prepend(LINKFLAGS=["-T", env["LDSCRIPT_PATH"]])
# enable "cyclic reference" for linker
if env.get("LIBS") and env.GetCompilerType() == "gcc":

View File

@ -37,6 +37,7 @@ class StrictListField(fields.List):
try:
return super(StrictListField, self)._deserialize(value, attr, data)
except ValidationError as exc:
if exc.data:
exc.data = [item for item in exc.data if item is not None]
raise exc