export: Corrections to Sw4STM32 after review

Add double quotes to linker command unconditionally.
pull/5184/head
Jaakko Heikkilä 2017-09-08 14:28:38 +03:00 committed by adbridge
parent b45a5636f2
commit 60b0eccf93
2 changed files with 4 additions and 9 deletions

View File

@ -371,12 +371,9 @@ class Sw4STM32(GNUARMEclipse):
preproc_cmd = ""
# Hack for Windows. Build fails if command contains parentheses.
if ('(' in self.toolchain.preproc[0] or ')' in self.toolchain.preproc[0]) and self.toolchain.preproc[0][0] != "'":
preproc_cmd = '"' + \
self.toolchain.preproc[0] + '"' + " " + \
" ".join(self.toolchain.preproc[1:])
else:
preproc_cmd = " ".join(self.toolchain.preproc)
preproc_cmd = '"' + \
self.toolchain.preproc[0] + '"' + " " + \
" ".join(self.toolchain.preproc[1:])
for id in ['debug', 'release']:
opts = {}

View File

@ -1,8 +1,6 @@
# DO NOT REMOVE! Generated by the SW4STM32 exporter from the mbed project.
ifeq ($(strip $(PREPROC_CMD)),)
PREPROC_CMD := {{cpp_cmd}}
endif
PREPROC_CMD ?= {{cpp_cmd}}
ldclean:
{% for config, opts in options.iteritems() %}