From 475a3b8b8596a79d2dd7cf089e6461d460cef0d5 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 8 Jan 2017 10:01:48 +0800 Subject: [PATCH] [Tools] fix CPPDEFINES issue in vs --- tools/vs.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/vs.py b/tools/vs.py index bd1c7a4b24..958d166d2d 100644 --- a/tools/vs.py +++ b/tools/vs.py @@ -108,7 +108,14 @@ def VSProject(target, script, program): # write cppdefinitons flags if building.Env.has_key('CPPDEFINES'): - definitions = ';'.join(building.Env['CPPDEFINES']) + CPPDEFINES = building.Env['CPPDEFINES'] + definitions = [] + if type(CPPDEFINES[0]) == type(()): + for item in CPPDEFINES: + definitions += [i for i in item] + definitions = ';'.join(definitions) + else: + definitions = ';'.join(building.Env['CPPDEFINES']) elem.set('PreprocessorDefinitions', definitions) # write link flags