فهرست منبع

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.
Seth Greenstein 8 سال پیش
والد
کامیت
68ee916221
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      BUILD

+ 3 - 1
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({
 LINK_OPTS = select({
     ":android": [],
     ":android": [],
+    ":windows": [],
+    ":windows_msvc": [],
     "//conditions:default": ["-lpthread", "-lm"],
     "//conditions:default": ["-lpthread", "-lm"],
 })
 })