String literals passed to defines() must be escaped for Xcode.

This commit is contained in:
Joshua Bodine 2017-01-21 18:52:01 -07:00
parent ebd07a7f0b
commit 34c844e14b

View File

@ -1019,7 +1019,11 @@
settings['GCC_PREFIX_HEADER'] = cfg.pchheader settings['GCC_PREFIX_HEADER'] = cfg.pchheader
end end
settings['GCC_PREPROCESSOR_DEFINITIONS'] = cfg.defines local escapedDefines = { }
for i,v in ipairs(cfg.defines) do
escapedDefines[i] = escapeArg(v)
end
settings['GCC_PREPROCESSOR_DEFINITIONS'] = escapedDefines
settings["GCC_SYMBOLS_PRIVATE_EXTERN"] = 'NO' settings["GCC_SYMBOLS_PRIVATE_EXTERN"] = 'NO'