]> git.lyx.org Git - features.git/commitdiff
scons/SConstruct: fix compiling with SCons
authorUwe Stöhr <uwestoehr@web.de>
Wed, 24 Feb 2010 20:45:12 +0000 (20:45 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 24 Feb 2010 20:45:12 +0000 (20:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33560 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/SConstruct

index f44eb7ff73684c9d9731f56545b9388708cbb711..6b67cb2fb896e5ed41e3fd03e5a6cc8a343e9ada 100644 (file)
@@ -411,6 +411,7 @@ if platform_name == 'win32':
 # hard-coded options are required and will always be there
 # default options can be replaced by enviromental variables or command line options
 CCFLAGS_required = []
+CXXFLAGS_required = []
 LINKFLAGS_required = []
 CCFLAGS_default = []
 
@@ -420,6 +421,7 @@ if use_vc:
     #   in the current code page (number)
     # C4996: foo was decleared deprecated
     CCFLAGS_required.append('/EHsc')
+    CXXFLAGS_required.append('/Zc:wchar_t-')
     if mode == 'debug':
         CCFLAGS_default.extend(['/wd4819', '/wd4996', '/nologo', '/MDd'])
     else:
@@ -514,7 +516,7 @@ setEnvVariable(env, 'CPP')
 setEnvVariable(env, 'CXX')
 setEnvVariable(env, 'CXXCPP')
 setEnvVariable(env, 'CCFLAGS', CCFLAGS_required, CCFLAGS_default)
-setEnvVariable(env, 'CXXFLAGS')
+setEnvVariable(env, 'CXXFLAGS', CXXFLAGS_required)
 setEnvVariable(env, 'CPPFLAGS')
 setEnvVariable(env, 'LINKFLAGS', LINKFLAGS_required)
 
@@ -832,10 +834,10 @@ else:
 # check the size of wchar_t
 sizeof_wchar_t = conf.CheckSizeOfWChar()
 # something wrong
-if sizeof_wchar_t == 0:
-    print 'Error: Can not determine the size of wchar_t.'
-    print 'Please check config.log for more information.'
-    Exit(1)
+#if sizeof_wchar_t == 0:
+#    print 'Error: Can not determine the size of wchar_t.'
+#    print 'Please check config.log for more information.'
+#    Exit(1)
 
 
 # fill in the version info