mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fixed an issue with linking process when `$LDSCRIPT
` contains a space in path
This commit is contained in:
@ -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)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
@ -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":
|
||||
|
@ -37,7 +37,8 @@ class StrictListField(fields.List):
|
||||
try:
|
||||
return super(StrictListField, self)._deserialize(value, attr, data)
|
||||
except ValidationError as exc:
|
||||
exc.data = [item for item in exc.data if item is not None]
|
||||
if exc.data:
|
||||
exc.data = [item for item in exc.data if item is not None]
|
||||
raise exc
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user