Skip to content

Commit 41d11b5

Browse files
committed
Set DeliverableStandaloneArchive language_id for all languages
1 parent 1a4faf3 commit 41d11b5

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

sdk/mx.sdk/mx_sdk_vm_ng.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,16 @@ def __init__(self, suite, name=None, deps=None, excludedLibs=None, platformDepen
10251025
# required but optional for compatibility and when the default *_dist_name are not good enough
10261026
language_id = kw_args.pop('language_id', None)
10271027

1028+
# TODO: remove this when language_id is set in those suites
1029+
mapping = {
1030+
'graal-js': 'js',
1031+
'graal-nodejs': 'nodejs',
1032+
'truffleruby': 'ruby',
1033+
'graalpython': 'python',
1034+
}
1035+
if not language_id and suite.name in mapping:
1036+
language_id = mapping[suite.name]
1037+
10281038
# optional, derived from *_archive_name by default. Best left as default to avoid extra folder when extracting with some GUIs.
10291039
community_dir_name = kw_args.pop('community_dir_name', None)
10301040
enterprise_dir_name = kw_args.pop('enterprise_dir_name', None)

sulong/mx.sulong/suite.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,17 +2163,21 @@
21632163
"class": "DeliverableStandaloneArchive",
21642164
"platformDependent": True,
21652165
"standalone_dist": "SULONG_NATIVE_STANDALONE",
2166+
"language_id": "llvm",
21662167
"community_archive_name": "llvm-community",
21672168
"enterprise_archive_name": "llvm-unused", # should not be used as it lacks the managed toolchain
2169+
"enterprise_dist_name": "SULONG_NATIVE_UNUSED_ENTERPRISE_NATIVE_STANDALONE",
21682170
"defaultBuild": False,
21692171
},
21702172

21712173
"SULONG_JVM_STANDALONE_RELEASE_ARCHIVE": {
21722174
"class": "DeliverableStandaloneArchive",
21732175
"platformDependent": True,
21742176
"standalone_dist": "SULONG_JVM_STANDALONE",
2177+
"language_id": "llvm",
21752178
"community_archive_name": "llvm-community-jvm",
21762179
"enterprise_archive_name": "llvm-unused-jvm", # should not be used as it lacks the managed toolchain
2180+
"enterprise_dist_name": "SULONG_NATIVE_UNUSED_ENTERPRISE_JVM_STANDALONE",
21772181
"defaultBuild": False,
21782182
},
21792183

wasm/mx.wasm/suite.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@
500500
"class": "DeliverableStandaloneArchive",
501501
"platformDependent": True,
502502
"standalone_dist": "GRAALWASM_NATIVE_STANDALONE",
503+
"language_id": "wasm",
503504
"community_archive_name": "graalwasm-community",
504505
"enterprise_archive_name": "graalwasm",
505506
},
@@ -508,6 +509,7 @@
508509
"class": "DeliverableStandaloneArchive",
509510
"platformDependent": True,
510511
"standalone_dist": "GRAALWASM_JVM_STANDALONE",
512+
"language_id": "wasm",
511513
"community_archive_name": "graalwasm-community-jvm",
512514
"enterprise_archive_name": "graalwasm-jvm",
513515
},

0 commit comments

Comments
 (0)