Skip to content

Commit

Permalink
Add javac-9-dev-r3297-3
Browse files Browse the repository at this point in the history
  • Loading branch information
cushon authored and damienmg committed Feb 22, 2017
1 parent 2fe062b commit 2e689c2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion scripts/bootstrap/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Script for building bazel from scratch without bazel

PROTO_FILES=$(ls src/main/protobuf/*.proto src/main/java/com/google/devtools/build/lib/buildeventstream/proto/*.proto)
LIBRARY_JARS=$(find third_party -name '*.jar' | grep -Fv /javac-9-dev-r3297-1.jar | grep -Fv /javac7.jar | grep -Fv JavaBuilder | grep -ve third_party/grpc/grpc.*jar | tr "\n" " ")
LIBRARY_JARS=$(find third_party -name '*.jar' | grep -Fv /javac-9-dev-r3297-3.jar | grep -Fv /javac7.jar | grep -Fv JavaBuilder | grep -ve third_party/grpc/grpc.*jar | tr "\n" " ")
GRPC_JAVA_VERSION=0.15.0
GRPC_LIBRARY_JARS=$(find third_party/grpc -name '*.jar' | grep -e .*${GRPC_JAVA_VERSION}.*jar | tr "\n" " ")
LIBRARY_JARS="${LIBRARY_JARS} ${GRPC_LIBRARY_JARS}"
Expand Down
6 changes: 3 additions & 3 deletions src/create_embedded_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ for i in $*; do
*JavaBuilder*_deploy.jar) OUTPUT_PATH=tools/jdk/JavaBuilder_deploy.jar ;;
*JacocoCoverage*_deploy.jar) OUTPUT_PATH=tools/jdk/JacocoCoverage_deploy.jar ;;
*turbine_deploy.jar) OUTPUT_PATH=tools/jdk/turbine_deploy.jar ;;
*javac-9-dev-r3297-1.jar) OUTPUT_PATH=third_party/java/jdk/langtools/javac-9-dev-r3297-1.jar ;;
*javac-9-dev-r3297-3.jar) OUTPUT_PATH=third_party/java/jdk/langtools/javac-9-dev-r3297-3.jar ;;
*javac7.jar) OUTPUT_PATH=third_party/java/jdk/langtools/javac7.jar ;;
*SingleJar_deploy.jar) OUTPUT_PATH=tools/jdk/SingleJar_deploy.jar ;;
*GenClass_deploy.jar) OUTPUT_PATH=tools/jdk/GenClass_deploy.jar ;;
Expand All @@ -68,9 +68,9 @@ for i in $*; do
chmod u+w "${PACKAGE_DIR}/${OUTPUT_PATH}"
done

if [ ! -f ${PACKAGE_DIR}/third_party/java/jdk/langtools/javac-9-dev-r3297-1.jar ]; then
if [ ! -f ${PACKAGE_DIR}/third_party/java/jdk/langtools/javac-9-dev-r3297-3.jar ]; then
cp ${PACKAGE_DIR}/third_party/java/jdk/langtools/javac7.jar \
${PACKAGE_DIR}/third_party/java/jdk/langtools/javac-9-dev-r3297-1.jar
${PACKAGE_DIR}/third_party/java/jdk/langtools/javac-9-dev-r3297-3.jar
fi

cat > "${PACKAGE_DIR}/WORKSPACE" <<EOF
Expand Down
4 changes: 2 additions & 2 deletions src/test/shell/testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ function create_new_workspace() {

copy_tools_directory

[ -e third_party/java/jdk/langtools/javac-9-dev-r3297-1.jar ] \
|| ln -s "${langtools_path}" third_party/java/jdk/langtools/javac-9-dev-r3297-1.jar
[ -e third_party/java/jdk/langtools/javac-9-dev-r3297-3.jar ] \
|| ln -s "${langtools_path}" third_party/java/jdk/langtools/javac-9-dev-r3297-3.jar

touch WORKSPACE
}
Expand Down
2 changes: 1 addition & 1 deletion third_party/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ a minimal set of extra dependencies.

## [javac](https://github.com/google/error-prone-javac)

* Version: 1.9.0-dev-r2973-2 (javac7.jar) and 1.9.0-dev-r2644-2 (javac-9-dev-r3297-1.jar)
* Version: 9-dev-r3297-3 (javac-9-dev-r3297-3.jar)
* License: GNU GPL v2 with Classpath exception (plus other licenses, see third_party/java/jdk/langtools/LICENSE file).

## [jarjar](https://code.google.com/p/jarjar/)
Expand Down
2 changes: 1 addition & 1 deletion third_party/java/jdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version of the JRE. Those builds are vendored in
//third_party/java/jdk/langtools.

Currently Bazel supports running on a JRE 8 only because the default Java
compiler used (//third_party/java/jdk/langtools/javac-9-dev-r3297-1.jar) is the
compiler used (//third_party/java/jdk/langtools/javac-9-dev-r3297-3.jar) is the
Java compiler of OpenJDK 9 compiled to run on a JRE 8. This cannot
be built to run on a JRE 7 because of code incompatibility. Bazel's
JavaBuilder at HEAD cannot be linked with earlier version of the
Expand Down
8 changes: 4 additions & 4 deletions third_party/java/jdk/langtools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ filegroup(
"//conditions:default": [
"BUILD",
"LICENSE",
"javac-9-dev-r3297-1.jar",
"javac-9-dev-r3297-1.srcjar",
"javac-9-dev-r3297-3.jar",
"javac-9-dev-r3297-3.srcjar",
],
}),
)

java_import(
name = "javac",
jars = ["javac-9-dev-r3297-1.jar"],
jars = ["javac-9-dev-r3297-3.jar"],
)

filegroup(
name = "javac_jar",
srcs = select({
"//tools/jdk:jdk7": ["javac7.jar"],
"//conditions:default": ["javac-9-dev-r3297-1.jar"],
"//conditions:default": ["javac-9-dev-r3297-3.jar"],
}),
)

Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 2e689c2

Please sign in to comment.