From 056a6148300a65317965a7418b755611f16f3ca7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 24 Feb 2010 20:45:12 +0000 Subject: [PATCH] scons/SConstruct: fix compiling with SCons git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33560 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/SConstruct | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/development/scons/SConstruct b/development/scons/SConstruct index f44eb7ff73..6b67cb2fb8 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -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 -- 2.39.2