Merge pull request #29 from RichyHBM/keep-env-windows

Add compiler flags for windows
pull/30/head
Thomas Herzog 2017-07-30 14:43:13 +02:00 committed by GitHub
commit 0081c3bb3a
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']) env.Append(CPPPATH=['.', godot_headers_path, 'include', 'include/core'])
if platform == "windows": 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(LIBS=[godot_name])
env.Append(LIBPATH=[godot_lib_path]) env.Append(LIBPATH=[godot_lib_path])