Skip to content

Commit

Permalink
Merge pull request jcalifornia#29 from RichyHBM/keep-env-windows
Browse files Browse the repository at this point in the history
Add compiler flags for windows
  • Loading branch information
karroffel authored Jul 30, 2017
2 parents 501a308 + 2d54c15 commit 0081c3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 0081c3b

Please sign in to comment.