Merge pull request #678 from macsforme/xcode-string-literals

Escape string literals passed to defines() for Xcode
This commit is contained in:
Tom van Dijck 2017-01-23 09:42:57 -08:00 committed by GitHub
commit 5f02759402

View File

@ -1019,7 +1019,11 @@
settings['GCC_PREFIX_HEADER'] = cfg.pchheader
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'