properly quote build settings, even if they come from the command line
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4648 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
004353c8c1
commit
936aa142e0
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ defines_h = open(File('#Source/defines.h').abspath, 'w')
|
|||
for i in defenv['NSIS_CPPDEFINES']:
|
||||
if type(i) is not str:
|
||||
sconf_h.write('#define %s %s\n' % (i[0], i[1]))
|
||||
if type(i[1]) is int:
|
||||
if str(i[1])[0] != '"':
|
||||
defines_h.write('definedlist.add("%s", "%s");\n' % (i[0], i[1]))
|
||||
else:
|
||||
defines_h.write('definedlist.add("%s", %s);\n' % (i[0], i[1]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue