diff options
author | Richy HBM <RichyHBM@users.noreply.github.com> | 2017-07-30 13:22:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-30 13:22:30 +0100 |
commit | 2d54c15c301e020b84a9f12d062a5ff84fcc16ce (patch) | |
tree | 3c6b57395c967337dba1a1b05d090df067d2257a | |
parent | e5806869c51b8c02c36cc4bc30ae7d59e2c51901 (diff) | |
download | redot-cpp-2d54c15c301e020b84a9f12d062a5ff84fcc16ce.tar.gz |
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
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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]) |