mediapipe/third_party/org_tensorflow_objc_cxx17.diff
MediaPipe Team 2b58cceec9 Project import generated by Copybara.
GitOrigin-RevId: d8caa66de45839696f5bd0786ad3bfbcb9cff632
2020-12-09 22:43:33 -05:00

25 lines
829 B
Diff

diff --git a/tensorflow/lite/delegates/gpu/BUILD b/tensorflow/lite/delegates/gpu/BUILD
index 069230ebcf6..3924d7cced7 100644
--- a/tensorflow/lite/delegates/gpu/BUILD
+++ b/tensorflow/lite/delegates/gpu/BUILD
@@ -83,6 +83,7 @@ objc_library(
hdrs = ["metal_delegate.h"],
module_name = "TensorFlowLiteCMetal",
sdk_frameworks = ["Metal"],
+ copts = ["-std=c++17"],
deps = [
"//tensorflow/lite:kernel_api",
"//tensorflow/lite:minimal_logging",
diff --git a/tensorflow/lite/delegates/gpu/metal/BUILD b/tensorflow/lite/delegates/gpu/metal/BUILD
index 6dcde34a62f..1adfc28aad9 100644
--- a/tensorflow/lite/delegates/gpu/metal/BUILD
+++ b/tensorflow/lite/delegates/gpu/metal/BUILD
@@ -17,6 +17,7 @@ package(
DEFAULT_COPTS = [
"-Wno-shorten-64-to-32",
+ "-std=c++17",
]
cc_library(