From 220dcd0f5ce9d4379e174aeffce5419ecf3217bb Mon Sep 17 00:00:00 2001 From: Valeriy Koval Date: Tue, 14 Jun 2016 19:29:54 +0300 Subject: [PATCH] Improve linker flags handling for mbed --- platformio/builder/scripts/frameworks/mbed.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platformio/builder/scripts/frameworks/mbed.py b/platformio/builder/scripts/frameworks/mbed.py index 64d269af..2653f2ea 100644 --- a/platformio/builder/scripts/frameworks/mbed.py +++ b/platformio/builder/scripts/frameworks/mbed.py @@ -201,6 +201,11 @@ def parse_eix_file(filename): result[key].append( node.get(_nkeys[0]) if len(_nkeys) == 1 else node.attrib) + if "LINKFLAGS" in result: + for i, f in enumerate(result["LINKFLAGS"]): + if f.startswith("-u "): + result["LINKFLAGS"][i] = result["LINKFLAGS"][i].split(" ") + return result