Skip to content

Commit

Permalink
Tries to Fix macOS based compile
Browse files Browse the repository at this point in the history
  • Loading branch information
mustiikhalil committed May 11, 2024
1 parent 04e6592 commit 45d7292
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions grpc/build_grpc_with_cxx14.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
diff --git a/bazel/copts.bzl b/bazel/copts.bzl
index 10be944f25..879518b92f 100644
index 4715100056..274ee502af 100644
--- a/bazel/copts.bzl
+++ b/bazel/copts.bzl
@@ -59,4 +59,7 @@ GRPC_LLVM_WARNING_FLAGS = [
@@ -45,7 +45,6 @@ GRPC_LLVM_WARNING_FLAGS = [
"-Wtautological-overlap-compare",
"-Wthread-safety-analysis",
"-Wthread-safety-beta",
- "-Wunused-but-set-variable",
"-Wunused-comparison",
"-Wvla",
# -Wextra compatibility between gcc and clang
@@ -60,4 +59,7 @@ GRPC_LLVM_WARNING_FLAGS = [
GRPC_DEFAULT_COPTS = select({
"//:use_strict_warning": GRPC_LLVM_WARNING_FLAGS + ["-DUSE_STRICT_WARNING=1"],
"//conditions:default": [],
-})
+}) + select({
+ "@bazel_tools//src/conditions:windows": ["/std:c++14"],
+ "//conditions:default": ["-std=c++14"],
+})
+ "@bazel_tools//src/conditions:windows": ["/std:c++14"],
+ "//conditions:default": ["-std=c++14"],
+})

0 comments on commit 45d7292

Please sign in to comment.