aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Seth Greenstein <sgreenstein@users.noreply.github.com>2017-10-10 11:08:27 -0700
committerGravatar GitHub <noreply@github.com>2017-10-10 11:08:27 -0700
commit68ee9162217867524a7649782c3610e70afdca68 (patch)
tree3ed35d92cfb10217c04c2eeb28c94c5bf5406c2e /BUILD
parent6032746882ea48ff6d983df8cb77e2ebf399bf0c (diff)
Don't pass -lpthread and -lm on Windows
These flags are ignored by cl.exe and have no effect, but add noise to the build logs.
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/BUILD b/BUILD
index 7d80e14f..f9221248 100644
--- a/BUILD
+++ b/BUILD
@@ -44,9 +44,11 @@ config_setting(
},
)
-# Android builds do not need to link in a separate pthread library.
+# Android and Windows builds do not need to link in a separate pthread library.
LINK_OPTS = select({
":android": [],
+ ":windows": [],
+ ":windows_msvc": [],
"//conditions:default": ["-lpthread", "-lm"],
})