From 3bb86f1e01e275245d137377a001cb9d7508886d Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 16 Feb 2022 13:12:10 +0200 Subject: [PATCH] Use C++17 flag only for C++ files. --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index d748f63a..d06586ec 100644 --- a/SConstruct +++ b/SConstruct @@ -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"])