Fix wrong build options for MSVC
parent
588d869a3b
commit
d65aa2814b
|
@ -38,6 +38,12 @@ def generate(env):
|
||||||
env["CC"] = "clang-cl"
|
env["CC"] = "clang-cl"
|
||||||
env["CXX"] = "clang-cl"
|
env["CXX"] = "clang-cl"
|
||||||
|
|
||||||
|
if env["optimize"] == "debug" or env["optimize"] == "none":
|
||||||
|
if env["use_static_cpp"]:
|
||||||
|
env.Append(CCFLAGS=["/MTd"])
|
||||||
|
else:
|
||||||
|
env.Append(CCFLAGS=["/MDd"])
|
||||||
|
else:
|
||||||
if env["use_static_cpp"]:
|
if env["use_static_cpp"]:
|
||||||
env.Append(CCFLAGS=["/MT"])
|
env.Append(CCFLAGS=["/MT"])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue