Skip to content

Commit b3f0321

Browse files
committed
Fix issue when path contains space while generating LD script
1 parent 9262a4a commit b3f0321

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

mbed.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_dynamic_manifest(name, config, extra_inc_dirs=[]):
9090

9191
if name == "LWIP":
9292
manifest['dependencies'] = {"mbed-events": "*"}
93-
93+
9494
manifest['build']['libLDFMode'] = "chain+"
9595

9696
return manifest
@@ -198,9 +198,11 @@ def get_dynamic_manifest(name, config, extra_inc_dirs=[]):
198198
linker_script = env.Command(
199199
join("$BUILD_DIR",
200200
"%s.link_script.ld" % basename(env.get("LDSCRIPT_PATH"))),
201-
env.get("LDSCRIPT_PATH"),
202-
env.VerboseAction("arm-none-eabi-cpp -E -P $LINKPPFLAGS $SOURCE -o $TARGET",
203-
"Generating LD script $TARGET"))
201+
"$LDSCRIPT_PATH",
202+
env.VerboseAction(
203+
'%s -E -P $LINKPPFLAGS "$SOURCE" -o $TARGET' %
204+
env.subst("$GDB").replace("-gdb", "-cpp"),
205+
"Generating LD script $TARGET"))
204206

205207
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", linker_script)
206208
env.Replace(LDSCRIPT_PATH=linker_script)

0 commit comments

Comments
 (0)