Remove ct.sym from embedded JDK.
ct.sym is only used during compilation which doesn't happen with the embedded JDK.
This will save ~3.3MB of the final binary size.
Note that we need to build the new minimal JDK on buildkite and then update the hashes in a subsequent commit.
Closes
@@ -46,6 +46,10 @@ if [[ "$UNAME" =~ msys_nt* ]]; then
reduced/
# These are necessary for --host_jvm_debug to work.
cp bin/dt_socket.dll bin/jdwp.dll reduced/bin
+ if [[ "$modules" != "ALL-MODULE-PATH" ]]; then
+ # Only necessary for compilation, which doesn't happen with the minimal JDK.
+ rm reduced/lib/ct.sym
+ fi
zip -r -9 ../reduced.zip reduced/
cd ../..
mv "tmp.$$/reduced.zip" "$out"
@@ -64,6 +68,10 @@ else
else
cp lib/libdt_socket.so lib/libjdwp.so reduced/lib
fi
+ if [[ "$modules" != "ALL-MODULE-PATH" ]]; then
+ # Only necessary for compilation, which doesn't happen with the minimal JDK.
+ rm reduced/lib/ct.sym
+ fi
GZIP=-9 tar -zcf ../reduced.tgz reduced
cd ..
mv reduced.tgz "$out"
