Skip to content

Commit ca60bae

Browse files
author
okamstudio
committed
Merge pull request godotengine#34 from marynate/master
Fixed build rule file for proper MSVC release build
2 parents 4e2c81b + 5abc0bb commit ca60bae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

platform/windows/detect.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def configure(env):
8484

8585
env.Append(CCFLAGS=['/O2'])
8686
env.Append(LINKFLAGS=['/SUBSYSTEM:WINDOWS'])
87+
env.Append(LINKFLAGS=['/ENTRY:mainCRTStartup'])
8788

8889
elif (env["target"]=="test"):
8990

@@ -92,8 +93,9 @@ def configure(env):
9293

9394
elif (env["target"]=="debug"):
9495

95-
env.Append(CCFLAGS=['/Zi','/DDEBUG_ENABLED','/DD3D_DEBUG_INFO','/O1'])
96+
env.Append(CCFLAGS=['/Zi','/DDEBUG_ENABLED','/DD3D_DEBUG_INFO','/O1'])
9697
env.Append(LINKFLAGS=['/SUBSYSTEM:CONSOLE'])
98+
env.Append(LINKFLAGS=['/DEBUG'])
9799

98100
elif (env["target"]=="profile"):
99101

@@ -113,8 +115,7 @@ def configure(env):
113115
env.Append(CCFLAGS=['/DGLES1_ENABLED'])
114116
env.Append(CCFLAGS=['/DGLEW_ENABLED'])
115117
env.Append(LIBS=['winmm','opengl32','dsound','kernel32','ole32','user32','gdi32','wsock32'])
116-
env.Append(LINKFLAGS=['/DEBUG'])
117-
118+
118119
env.Append(LIBPATH=[os.getenv("WindowsSdkDir")+"/Lib"])
119120
if (os.getenv("DXSDK_DIR")):
120121
DIRECTX_PATH=os.getenv("DXSDK_DIR")

0 commit comments

Comments
 (0)