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:
commit
932a8028ca
@ -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 += [
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user