aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/profiler/internal/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/profiler/internal/BUILD')
-rw-r--r--tensorflow/core/profiler/internal/BUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/core/profiler/internal/BUILD b/tensorflow/core/profiler/internal/BUILD
index abb4534f77..129a42deeb 100644
--- a/tensorflow/core/profiler/internal/BUILD
+++ b/tensorflow/core/profiler/internal/BUILD
@@ -9,6 +9,7 @@ package(
licenses(["notice"]) # Apache 2.0
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
+load("//tensorflow:tensorflow.bzl", "if_not_windows")
cc_library(
name = "tfprof_stats",
@@ -243,7 +244,7 @@ cc_library(
name = "tfprof_utils",
srcs = ["tfprof_utils.cc"],
hdrs = ["tfprof_utils.h"],
- copts = ["-Wno-sign-compare"],
+ copts = if_not_windows(["-Wno-sign-compare"]),
deps = [
":tfprof_options",
"//tensorflow/core:lib",
@@ -315,7 +316,7 @@ cc_library(
name = "tfprof_tensor",
srcs = ["tfprof_tensor.cc"],
hdrs = ["tfprof_tensor.h"],
- copts = ["-Wno-sign-compare"],
+ copts = if_not_windows(["-Wno-sign-compare"]),
deps = [
"//tensorflow/core:framework",
"//tensorflow/core:lib",