Skip to content

Commit

Permalink
Revert D57947241: Clean up jdk7 dependencies
Browse files Browse the repository at this point in the history
Differential Revision:
D57947241

Original commit changeset: c1885124019e

Original Phabricator Diff: D57947241

fbshipit-source-id: b2162ecfcb9a8e557a1d4a6a5aa630b000537819
  • Loading branch information
Chang Hua authored and facebook-github-bot committed Jun 3, 2024
1 parent 0c3c3e9 commit 071221f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prelude/java/java_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,12 @@ def _build_classpath(actions: AnalysisActions, deps: list[Dependency], additiona

def _build_bootclasspath(bootclasspath_entries: list[Artifact], source_level: int, java_toolchain: JavaToolchainInfo) -> list[Artifact]:
bootclasspath_list = []
if source_level in [8]:
if source_level in [7, 8]:
if bootclasspath_entries:
bootclasspath_list = bootclasspath_entries
elif source_level == 7:
expect(java_toolchain.bootclasspath_7, "Must specify bootclasspath for source level 7")
bootclasspath_list = java_toolchain.bootclasspath_7
elif source_level == 8:
expect(java_toolchain.bootclasspath_8, "Must specify bootclasspath for source level 8")
bootclasspath_list = java_toolchain.bootclasspath_8
Expand Down

0 comments on commit 071221f

Please sign in to comment.