Browse Source

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

Add compiler flags for windows
Thomas Herzog 8 years ago
parent
commit
0081c3bb3a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      SConstruct

+ 4 - 0
SConstruct

@@ -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])