Skip to content

Commit

Permalink
Set $TOOLS_HOME when necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
ansalond committed Dec 6, 2023
1 parent fb02ab0 commit 96efa3a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions vm/ci/ci_common/common.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,17 @@ local devkits = graal_common.devkits;
local java_deps(edition) = {
downloads+: {
JAVA_HOME: graal_common.jdks_data['labsjdk-' + edition + '-' + java_version],
} + if (os == 'linux' || os == 'darwin') && (arch == 'amd64') && (java_version != 'latest') then {
} + (
if (os == 'linux' || os == 'darwin') && (arch == 'amd64') && (java_version != 'latest') then {
LLVM_JAVA_HOME: graal_common.jdks_data['labsjdk-' + edition + '-' + java_version + '-llvm'],
} else {
}
} else {
}
) + (
if (java_version == 'latest') then {
TOOLS_JAVA_HOME: graal_common.jdks_data['oraclejdk21'],
} else {
}
)
};

if (os == 'linux') then
Expand Down

0 comments on commit 96efa3a

Please sign in to comment.