Browse Source

Merge pull request #3735 from sgreenstein/patch-1

Don't pass -lpthread and -lm on Windows
Feng Xiao 8 years ago
parent
commit
c4083bb3d1
1 changed files with 3 additions and 1 deletions
  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({
     ":android": [],
+    ":windows": [],
+    ":windows_msvc": [],
     "//conditions:default": ["-lpthread", "-lm"],
 })