Skip to content

Commit 2b14982

Browse files
[GR-27811] Add repository-specific dependencies to Native Image.
PullRequest: graal/12140
2 parents 66cab84 + 1acf5ff commit 2b14982

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
}
143143
},
144144
"svm": {
145+
"COMMENT.deps": "Please use svm_deps in common.jsonnet instead (the values below are without the repository-specific dependencies).",
145146
"deps": {
146147
"COMMENT.common": "graal/vm/ci_common/common.jsonnet hardcodes the properties of this object",
147148
"common": {

common.jsonnet

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
jdt:: downloads.jdt,
1919
devkits:: common_json.devkits,
2020

21+
svm_deps:: common_json.svm.deps + repo_config.native_image.extra_deps,
22+
2123
build_base:: {
2224
// holds location of CI resources that can easily be overwritten in an overlay
2325
ci_resources:: (import "ci-resources.libsonnet"),

repo-configuration.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828

2929
native_image:: {
3030
vm_suite:: "vm",
31+
extra_deps:: {},
3132
}
3233
}

vm/ci_common/common.jsonnet

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ local devkits = common_json.devkits;
181181

182182
graalpython_darwin_aarch64: self.sulong_darwin_aarch64 + {},
183183

184-
vm_linux_amd64: self.common_vm_linux + graal_common.linux_amd64 + {
184+
vm_linux_amd64: self.common_vm_linux + graal_common.linux_amd64 + graal_common.svm_deps.linux_amd64 {
185185
capabilities+: ['manycores', 'ram16gb', 'fast'],
186186
},
187187

@@ -388,12 +388,12 @@ local devkits = common_json.devkits;
388388
mx_vm_common: vm.mx_cmd_base_no_env + ['--env', '${VM_ENV}'] + self.mx_vm_cmd_suffix,
389389
mx_vm_installables: vm.mx_cmd_base_no_env + ['--env', '${VM_ENV}-complete'] + self.mx_vm_cmd_suffix,
390390

391-
svm_common_linux_amd64: { environment+: common_json.svm.deps.common.environment, logs+: common_json.svm.deps.common.logs} + common_json.svm.deps.linux_amd64,
392-
svm_common_linux_aarch64: { environment+: common_json.svm.deps.common.environment, logs+: common_json.svm.deps.common.logs} + common_json.svm.deps.linux_aarch64,
393-
svm_common_darwin_amd64: { environment+: common_json.svm.deps.common.environment, logs+: common_json.svm.deps.common.logs} + common_json.svm.deps.darwin_amd64,
394-
svm_common_darwin_aarch64: { environment+: common_json.svm.deps.common.environment, logs+: common_json.svm.deps.common.logs} + common_json.svm.deps.darwin_aarch64,
395-
svm_common_windows_jdk11: { environment+: common_json.svm.deps.common.environment, logs+: common_json.svm.deps.common.logs} + common_json.svm.deps.windows + common_json.devkits['windows-jdk11'],
396-
svm_common_windows_jdk17: { environment+: common_json.svm.deps.common.environment, logs+: common_json.svm.deps.common.logs} + common_json.svm.deps.windows + common_json.devkits['windows-jdk17'],
391+
svm_common_linux_amd64: { environment+: graal_common.svm_deps.common.environment, logs+: graal_common.svm_deps.common.logs} + graal_common.svm_deps.linux_amd64,
392+
svm_common_linux_aarch64: { environment+: graal_common.svm_deps.common.environment, logs+: graal_common.svm_deps.common.logs} + graal_common.svm_deps.linux_aarch64,
393+
svm_common_darwin_amd64: { environment+: graal_common.svm_deps.common.environment, logs+: graal_common.svm_deps.common.logs} + graal_common.svm_deps.darwin_amd64,
394+
svm_common_darwin_aarch64: { environment+: graal_common.svm_deps.common.environment, logs+: graal_common.svm_deps.common.logs} + graal_common.svm_deps.darwin_aarch64,
395+
svm_common_windows_jdk11: { environment+: graal_common.svm_deps.common.environment, logs+: graal_common.svm_deps.common.logs} + graal_common.svm_deps.windows + common_json.devkits['windows-jdk11'],
396+
svm_common_windows_jdk17: { environment+: graal_common.svm_deps.common.environment, logs+: graal_common.svm_deps.common.logs} + graal_common.svm_deps.windows + common_json.devkits['windows-jdk17'],
397397

398398
maven_deploy_sdk: ['--suite', 'sdk', 'maven-deploy', '--validate', 'none', '--all-distribution-types', '--with-suite-revisions-metadata'],
399399
maven_deploy_sdk_base: self.maven_deploy_sdk + ['--tags', 'graalvm', vm.binaries_repository],

0 commit comments

Comments
 (0)