Skip to content

Commit 3bb86f1

Browse files
committed
Use C++17 flag only for C++ files.
1 parent 9bc489e commit 3bb86f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SConstruct

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ if host_platform == "windows" and env["platform"] != "android":
170170
# Require C++17
171171
if host_platform == "windows" and env["platform"] == "windows" and not env["use_mingw"]:
172172
# MSVC
173-
env.Append(CCFLAGS=["/std:c++17"])
173+
env.Append(CXXFLAGS=["/std:c++17"])
174174
else:
175-
env.Append(CCFLAGS=["-std=c++17"])
175+
env.Append(CXXFLAGS=["-std=c++17"])
176176

177177
if env["target"] == "debug":
178178
env.Append(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_METHODS_ENABLED"])

0 commit comments

Comments
 (0)