Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Blender.py')
-rw-r--r--tools/Blender.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index 164a9d097e6..749fa55a833 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -448,6 +448,12 @@ class BlenderEnvironment(SConsEnvironment):
lenv.Append(CFLAGS = lenv['C_WARN'])
lenv.Append(CCFLAGS = lenv['CC_WARN'])
lenv.Append(CXXFLAGS = lenv['CXX_WARN'])
+
+ if lenv['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
+ if lenv['BF_DEBUG']:
+ lenv.Append(CCFLAGS = ['/MTd'])
+ else:
+ lenv.Append(CCFLAGS = ['/MT'])
targetdir = root_build_dir+'lib/' + libname
if not (root_build_dir[0]==os.sep or root_build_dir[1]==':'):
@@ -476,6 +482,7 @@ class BlenderEnvironment(SConsEnvironment):
lenv = self.Clone()
if lenv['OURPLATFORM'] in ('win32-vc', 'cygwin', 'win64-vc'):
lenv.Append(LINKFLAGS = lenv['PLATFORM_LINKFLAGS'])
+ lenv.Append(LINKFLAGS = ['/FORCE:MULTIPLE'])
if lenv['BF_DEBUG']:
lenv.Prepend(LINKFLAGS = ['/DEBUG','/PDB:'+progname+'.pdb'])
if lenv['OURPLATFORM']=='linux2':