Merge pull request #60 from VoiDeD/ambuild-remove-tp-flag

Remove the /TP (compile as C++) msvc flag from projects that should be compiling as C.
This commit is contained in:
David Anderson 2014-07-03 09:24:51 -07:00
commit 932a8028ca
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',