]> git.lyx.org Git - features.git/commitdiff
SCons: msvc does not need this /TP option any more after we rename .C => .cpp. Also...
authorBo Peng <bpeng@lyx.org>
Tue, 21 Aug 2007 16:46:05 +0000 (16:46 +0000)
committerBo Peng <bpeng@lyx.org>
Tue, 21 Aug 2007 16:46:05 +0000 (16:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19693 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/SConstruct
development/scons/scons_utils.py

index 74db7429b716532aefb23bbea94af3eaf55d4d31..6639fdda6f23a51ee527a175dea27f0bcc866850 100644 (file)
@@ -448,11 +448,10 @@ C_COMPILER = env.subst('$CC')
 C_CCFLAGS = env.subst('$CCFLAGS').split()
 # if we use ms vc, the commands are fine (cl.exe and link.exe)
 if use_vc:
-    # /TP treat all source code as C++
     # C4819: The file contains a character that cannot be represented
     #   in the current code page (number)
     # C4996: foo was decleared deprecated
-    CCFLAGS_required.extend(['/TP', '/EHsc'])
+    CCFLAGS_required.append('/EHsc')
     if mode == 'debug':
         CCFLAGS_default.extend(['/wd4819', '/wd4996', '/nologo', '/MDd'])
         # the flags are also needed in C mode (for intl lib)
index 9fa18265c49a960c712b0640f2138ebef96d9efd..4749bf882eacbbf5823d157c5b34d4a0d33f3fa6 100644 (file)
@@ -236,7 +236,8 @@ int main()
 }
 '''
     conf.Message('Checking for the use of global cstd... ')
-    ret = conf.TryLink(check_global_cstd_source, '.c')
+    # if can not compile, define CXX_GLOBAL_CSTD
+    ret = not conf.TryLink(check_global_cstd_source, '.c')
     conf.Result(ret)
     return ret