Merge pull request #705 from bruvzg/fix_c_build

pull/706/head
Rémi Verschelde 2022-02-16 14:31:26 +01:00 committed by GitHub
commit 6f9d3c31d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -170,9 +170,9 @@ if host_platform == "windows" and env["platform"] != "android":
# Require C++17
if host_platform == "windows" and env["platform"] == "windows" and not env["use_mingw"]:
# MSVC
env.Append(CCFLAGS=["/std:c++17"])
env.Append(CXXFLAGS=["/std:c++17"])
else:
env.Append(CCFLAGS=["-std=c++17"])
env.Append(CXXFLAGS=["-std=c++17"])
if env["target"] == "debug":
env.Append(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_METHODS_ENABLED"])