Fixes for Windows bazel build.

Don't pass -Wno-sign-compare on Windows.
Add a #define HAVE_WINDOWS_H if _WIN32 is defined.
Don't assume sys/uio.h is available on Windows.

PiperOrigin-RevId: 524416809
This commit is contained in:
Richard O'Grady
2023-04-14 16:49:56 -07:00
parent 66a30b803f
commit c9f9edf6d7
3 changed files with 15 additions and 4 deletions

2
.bazelrc Normal file
View File

@@ -0,0 +1,2 @@
# googletest requires C++14 or above
build --cxxopt='-std=c++17'