File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -371,12 +371,9 @@ def generate(self):
371
371
372
372
preproc_cmd = ""
373
373
# Hack for Windows. Build fails if command contains parentheses.
374
- if ('(' in self .toolchain .preproc [0 ] or ')' in self .toolchain .preproc [0 ]) and self .toolchain .preproc [0 ][0 ] != "'" :
375
- preproc_cmd = '"' + \
376
- self .toolchain .preproc [0 ] + '"' + " " + \
377
- " " .join (self .toolchain .preproc [1 :])
378
- else :
379
- preproc_cmd = " " .join (self .toolchain .preproc )
374
+ preproc_cmd = '"' + \
375
+ self .toolchain .preproc [0 ] + '"' + " " + \
376
+ " " .join (self .toolchain .preproc [1 :])
380
377
381
378
for id in ['debug' , 'release' ]:
382
379
opts = {}
Original file line number Diff line number Diff line change 1
1
# DO NOT REMOVE! Generated by the SW4STM32 exporter from the mbed project.
2
2
3
- ifeq ($(strip $(PREPROC_CMD)),)
4
- PREPROC_CMD := {{cpp_cmd}}
5
- endif
3
+ PREPROC_CMD ?= {{cpp_cmd}}
6
4
7
5
ldclean:
8
6
{% for config, opts in options.iteritems() %}
You can’t perform that action at this time.
0 commit comments