summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2017-07-30 14:43:13 +0200
committerGitHub <noreply@github.com>2017-07-30 14:43:13 +0200
commit0081c3bb3a068e64c82945b345056ecb31107b6e (patch)
tree3c6b57395c967337dba1a1b05d090df067d2257a
parent501a30856bd29015ef885509643d81e75e28a3e1 (diff)
parent2d54c15c301e020b84a9f12d062a5ff84fcc16ce (diff)
downloadredot-cpp-0081c3bb3a068e64c82945b345056ecb31107b6e.tar.gz
Merge pull request #29 from RichyHBM/keep-env-windows
Add compiler flags for windows
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 286bfd2..9c204f2 100644
--- a/SConstruct
+++ b/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])