Remove the /TP (compile as C++) msvc flag from projects that should be compiling as C.

This commit is contained in:
Ryan Stecker 2014-07-02 13:46:39 -05:00
parent e6f6e6df70
commit db98c98a1a
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@ if compiler.cc.behavior == 'gcc':
elif compiler.cc.behavior == 'msvc':
compiler.linkflags.remove('/SUBSYSTEM:WINDOWS')
compiler.linkflags.append('/SUBSYSTEM:CONSOLE')
compiler.cxxflags.remove('/TP')
if builder.target_platform == 'linux':
compiler.defines += [

View File

@ -17,6 +17,9 @@ binary.compiler.includes += [
if builder.target_platform == 'linux':
binary.compiler.postlink += ['-lpthread', '-lrt']
if binary.compiler.cc.behavior == 'msvc':
binary.compiler.cxxflags.remove('/TP')
binary.sources += [
'BaseRuntime.cpp',
'engine2.cpp',