From 83781f7b06374d1daf9cdcee087a9f1606642780 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Wed, 13 Apr 2016 15:58:19 +0000 Subject: Fixes bugs so that we can build bazel with bazel on Windows src/main/java/com/google/devtools/build/lib/exec/SymlinkTreeHelper.java: enable --windows_compatible flag on Windows to make build-runfiles.exe work. scritps/bootstrap/compile.sh: --windows_compatible will also be passed to a dummy build-runfiles.exe defined in complie.sh. Which is actully a batch script, modify it to make it work. ----- With the changes above, we are able to build bazel with bazel. But when you try to run ./compile.sh compile /path/to/bazel again without clean up tmp directory, it will fail with a permission deny error. The reason seems to be that you can't use build-runfile.exe to build the same hard link twice, still trying to solve that. -- Change-Id: I93340b1ba9fa415f6db963b106e264799e33ede3 Reviewed-on: https://bazel-review.googlesource.com/#/c/3334 MOS_MIGRATED_REVID=119751076 --- third_party/protobuf/BUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'third_party/protobuf') diff --git a/third_party/protobuf/BUILD b/third_party/protobuf/BUILD index 718f5f057b..02c7f2dcf9 100644 --- a/third_party/protobuf/BUILD +++ b/third_party/protobuf/BUILD @@ -20,10 +20,11 @@ filegroup( filegroup( name = "protoc", srcs = select({ - "//third_party:windows_mingw": ["protoc-windows-x86_64.exe"], - "//third_party:windows_msys64_mingw64": ["protoc-windows-x86_64.exe"], - "//third_party:windows_msys64": ["protoc-windows-x86_64.exe"], - "//third_party:windows_clang": ["protoc-windows-x86_64.exe"], + # protoc-windows-x86_64.exe can't deal with long path(length > 260), change to protoc-mingw.exe. + "//third_party:windows_mingw": ["protoc-mingw.exe"], + "//third_party:windows_msys64_mingw64": ["protoc-mingw.exe"], + "//third_party:windows_msys64": ["protoc-mingw.exe"], + "//third_party:windows_clang": ["protoc-mingw.exe"], "//third_party:darwin": ["protoc-osx-x86_32.exe"], "//third_party:k8": ["protoc-linux-x86_64.exe"], "//third_party:piii": ["protoc-linux-x86_32.exe"], -- cgit v1.2.3