Skip to content

Commit fde9ebf

Browse files
committed
Use cpp 17
1 parent 537d11a commit fde9ebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ model {
100100
all {
101101
if (toolChain in Gcc || toolChain in Clang) {
102102
cppCompiler.define("GRPC_VERSION", version)
103-
cppCompiler.args "--std=c++14"
103+
cppCompiler.args "--std=c++17"
104104
addEnvArgs("CXXFLAGS", cppCompiler.args)
105105
addEnvArgs("CPPFLAGS", cppCompiler.args)
106106
if (project.hasProperty('buildUniversal') &&
@@ -130,7 +130,7 @@ model {
130130
} else if (toolChain in VisualCpp) {
131131
usingVisualCpp = true
132132
cppCompiler.define("GRPC_VERSION", version)
133-
cppCompiler.args "/EHsc", "/MT"
133+
cppCompiler.args "/EHsc", "/MT", "/std:c++17"
134134
if (rootProject.hasProperty('vcProtobufInclude')) {
135135
cppCompiler.args "/I${rootProject.vcProtobufInclude}"
136136
}

0 commit comments

Comments
 (0)