--- tensorflow/core/platform/BUILD.orig	2022-08-29 08:52:22 UTC
+++ tensorflow/core/platform/BUILD
@@ -680,6 +680,7 @@ cc_library(
         ":str_util",
         ":stringpiece",
     ],
+    copts = ["-std=c++17"],
 )
 
 cc_library(
