mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-06 06:10:06 +03:00
[SCons] Link MSVC debug runtime for optimize=none|debug only.
Select windows runtime in "targets" tool, use "/MDd" flag only when building with optimize="none" and optimize="debug".
This commit is contained in:
@@ -27,10 +27,6 @@ def generate(env):
|
||||
env.Append(CPPDEFINES=["TYPED_METHOD_BIND", "NOMINMAX"])
|
||||
env.Append(CCFLAGS=["/EHsc"])
|
||||
env.Append(LINKFLAGS=["/WX"])
|
||||
if env["debug_symbols"] or env["target"] == "debug":
|
||||
env.Append(CCFLAGS=["/MDd"])
|
||||
else:
|
||||
env.Append(CCFLAGS=["/MD"])
|
||||
|
||||
if env["use_clang_cl"]:
|
||||
env["CC"] = "clang-cl"
|
||||
|
||||
Reference in New Issue
Block a user