diff options
| author | mrezai | 2016-01-16 19:22:40 +0330 |
|---|---|---|
| committer | mrezai | 2016-01-16 19:22:40 +0330 |
| commit | 48bf9d31393357ad7b288e2ef684403cb65edd5b (patch) | |
| tree | 4b27cea98271cf915d346ba056447341e2ebe458 | |
| parent | 3c6dd5749d445f082fc925a34cc0a26f8d342304 (diff) | |
| download | godot-48bf9d31393357ad7b288e2ef684403cb65edd5b.tar.gz godot-48bf9d31393357ad7b288e2ef684403cb65edd5b.tar.zst godot-48bf9d31393357ad7b288e2ef684403cb65edd5b.zip | |
Fix 32 bit windows export crash
| -rw-r--r-- | platform/windows/detect.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index c00d94a4f..81247db38 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -339,7 +339,13 @@ def configure(env): if (env["target"]=="release"): - env.Append(CCFLAGS=['-O3','-ffast-math','-fomit-frame-pointer','-msse2']) + env.Append(CCFLAGS=['-ffast-math','-fomit-frame-pointer','-msse2']) + + if (env["bits"]=="64"): + env.Append(CCFLAGS=['-O3']) + else: + env.Append(CCFLAGS=['-O2']) + env.Append(LINKFLAGS=['-Wl,--subsystem,windows']) elif (env["target"]=="release_debug"): @@ -382,7 +388,7 @@ def configure(env): #'d3dx9d' env.Append(CPPFLAGS=['-DMINGW_ENABLED']) - env.Append(LINKFLAGS=['-g']) + #env.Append(LINKFLAGS=['-g']) # resrc env['is_mingw']=True |
