Skip to content

Commit c8f1e1f

Browse files
committed
Escape quotes in uvision project file defines
1 parent a6c85ee commit c8f1e1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/export/uvision/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def is_define(s):
204204
)
205205
flags['c_flags'] += " "
206206
flags['c_flags'] += " ".join(config_option)
207-
flags['c_defines'] = " ".join(f[2:] for f in c_flags if is_define(f))
207+
flags['c_defines'] = " ".join(f[2:].replace('"', '\\"')
208+
for f in c_flags if is_define(f))
208209
flags['ld_flags'] = " ".join(set(flags['ld_flags']))
209210
return flags
210211

0 commit comments

Comments
 (0)