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 --- src/main/tools/jdk.BUILD | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/tools/jdk.BUILD') diff --git a/src/main/tools/jdk.BUILD b/src/main/tools/jdk.BUILD index 41f2d6398b..57a2abb8d4 100644 --- a/src/main/tools/jdk.BUILD +++ b/src/main/tools/jdk.BUILD @@ -75,7 +75,13 @@ filegroup( filegroup( name = "jre-bin", - srcs = glob(["jre/bin/**"]), + srcs = select({ + # In some configurations, Java browser plugin is considered harmful and + # common antivirus software blocks access to npjp2.dll interfering with Bazel, + # so do not include it in JRE on Windows. + ":windows" : glob(["jre/bin/**"], exclude = ["jre/bin/plugin2/**"]), + "//conditions:default" : glob(["jre/bin/**"]) + }), ) filegroup( -- cgit v1.2.3