Don't add the output directory to the classpath
This was a work-around for a javac bug, and is unnecessary now that
we're setting locations using the API.
MOS_MIGRATED_REVID=146079935
@@ -46,13 +46,6 @@ public class ReducedClasspathJavaLibraryBuilder extends SimpleJavaLibraryBuilder
compressedClasspath =
build.getDependencyModule().computeStrictClasspath(build.getClassPath());
}
- if (compressedClasspath.isEmpty()) {
- // If the empty classpath is specified and javac is invoked programatically,
- // javac falls back to using the host classpath. We don't want JavaBuilder
- // to leak onto the compilation classpath, so we add the (hopefully empty)
- // class output directory to prevent that from happening.
- compressedClasspath = build.getClassDir();
- }
// Compile!
BlazeJavacResult result =
