From 68ee9162217867524a7649782c3610e70afdca68 Mon Sep 17 00:00:00 2001 From: Seth Greenstein Date: Tue, 10 Oct 2017 11:08:27 -0700 Subject: [PATCH] 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. --- BUILD | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BUILD b/BUILD index 7d80e14fef..f92212489e 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"], })