Add compiler flags for windows

This adds MSVC compiler flags to enable the DEBUG/NDEBUG defines, enable exceptions, turn on optimizations for Release builds, and link to the correct runtime library
pull/29/head
Richy HBM 2017-07-30 13:22:30 +01:00 committed by GitHub
parent e5806869c5
commit 2d54c15c30
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ if platform == "linux":
env.Append(CPPPATH=['.', godot_headers_path, 'include', 'include/core'])
if platform == "windows":
if target == "debug":
env.Append(CCFLAGS = ['-EHsc', '-D_DEBUG', '/MDd'])
else:
env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '/MD'])
env.Append(LIBS=[godot_name])
env.Append(LIBPATH=[godot_lib_path])