Skip to content

Commit 95516c3

Browse files
committed
Remove mx_sdk_vm_impl.standalone_home(), GRAALVM_STANDALONES and ALL_GRAALVM_ARTIFACTS and replace their usages
1 parent 199a5f4 commit 95516c3

File tree

1 file changed

+2
-40
lines changed

1 file changed

+2
-40
lines changed

sdk/mx.sdk/mx_sdk_vm_impl.py

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,7 +3432,6 @@ def _release_version():
34323432
))
34333433
main_dists = {
34343434
'graalvm': [],
3435-
'graalvm_standalones': [],
34363435
}
34373436
with_non_rebuildable_configs = False
34383437

@@ -3552,7 +3551,6 @@ def register_main_dist(dist, label):
35523551
else:
35533552
needs_java_standalone_jimage = True
35543553
java_standalone = GraalVmStandaloneComponent(get_component(main_component.name, fatalIfMissing=True), final_graalvm_distribution, is_jvm=True, defaultBuild=False)
3555-
register_main_dist(java_standalone, 'graalvm_standalones')
35563554

35573555
# Use `main_component.library_configs` rather than `_get_library_configs(main_component)` because we
35583556
# need to create a `NativeLibraryLauncherProject` for the JVM standalone even when one of the
@@ -3568,7 +3566,6 @@ def register_main_dist(dist, label):
35683566
only_native_libraries = not main_component.library_configs or (svm_support.is_supported() and not _has_skipped_libraries(main_component))
35693567
if only_native_launchers and only_native_libraries:
35703568
native_standalone = GraalVmStandaloneComponent(get_component(main_component.name, fatalIfMissing=True), final_graalvm_distribution, is_jvm=False, defaultBuild=False)
3571-
register_main_dist(native_standalone, 'graalvm_standalones')
35723569

35733570
if needs_java_standalone_jimage:
35743571
has_lib_graal = _get_libgraal_component() is not None
@@ -3646,11 +3643,9 @@ def register_main_dist(dist, label):
36463643
jimage_project=final_jimage_project,
36473644
))
36483645

3649-
# Trivial distributions to trigger the build of the final GraalVM distribution and standalones
3650-
all_main_dists = []
3646+
# Trivial distributions to trigger the build of the final GraalVM distribution
36513647
for label, dists in main_dists.items():
36523648
if dists:
3653-
all_main_dists += dists
36543649
register_distribution(mx.LayoutDirDistribution(
36553650
suite=_suite,
36563651
name=label.upper(),
@@ -3664,19 +3659,6 @@ def register_main_dist(dist, label):
36643659
defaultBuild=False,
36653660
))
36663661

3667-
register_distribution(mx.LayoutDirDistribution(
3668-
suite=_suite,
3669-
name="ALL_GRAALVM_ARTIFACTS",
3670-
deps=all_main_dists,
3671-
layout={
3672-
"./deps": "string:" + ",".join(all_main_dists),
3673-
},
3674-
path=None,
3675-
platformDependent=False,
3676-
theLicense=None,
3677-
defaultBuild=False,
3678-
))
3679-
36803662

36813663
def _needs_stage1_jimage(stage1_dist, final_dist):
36823664
assert isinstance(stage1_dist.jimage_jars, set) and isinstance(final_dist.jimage_jars, set)
@@ -3890,16 +3872,6 @@ def graalvm_home_from_env(extra_mx_args, env, stage1=False, suite=None):
38903872
return out.data.strip()
38913873

38923874

3893-
def standalone_home(comp_dir_name, is_jvm):
3894-
"""
3895-
:type comp_dir_name: str
3896-
:type is_jvm: bool
3897-
:rtype: str
3898-
"""
3899-
_standalone_dist = get_standalone_distribution(comp_dir_name, is_jvm)
3900-
return join(_standalone_dist.output, _standalone_dist.base_dir_name)
3901-
3902-
39033875
def print_graalvm_components(args):
39043876
"""print the name of the GraalVM distribution"""
39053877
parser = ArgumentParser(prog='mx graalvm-components', description='Print the list of GraalVM components')
@@ -3935,15 +3907,6 @@ def print_graalvm_home(args):
39353907
print(graalvm_home(stage1=args.stage1, fatalIfMissing=False))
39363908

39373909

3938-
def print_standalone_home(args):
3939-
"""print the GraalVM standalone home dir"""
3940-
parser = ArgumentParser(prog='mx standalone-home', description='Print the Standalone home directory')
3941-
parser.add_argument('--type', default='native', choices=['jvm', 'native'], help='Select the JVM or the Native Standalone')
3942-
parser.add_argument('comp_dir_name', action='store', help='component dir name', metavar='<comp_dir_name>')
3943-
args = parser.parse_args(args)
3944-
print(standalone_home(args.comp_dir_name, is_jvm=(args.type == 'jvm')))
3945-
3946-
39473910
def print_graalvm_type(args):
39483911
"""print the GraalVM artifact type"""
39493912
# Required by the CI jsonnet files that trigger structure checks
@@ -4221,7 +4184,7 @@ def graalvm_show(args, forced_graalvm_dist=None):
42214184
for config in cfg['configs']:
42224185
print(f" {config} (from {cfg['source']})")
42234186
if args.verbose:
4224-
for dist_name in 'GRAALVM', 'GRAALVM_STANDALONES', 'ALL_GRAALVM_ARTIFACTS':
4187+
for dist_name in 'GRAALVM':
42254188
dist = mx.distribution(dist_name, fatalIfMissing=False)
42264189
if dist is not None:
42274190
print(f"Dependencies of the '{dist_name}' distribution:\n -", '\n - '.join(sorted(dep.name for dep in dist.deps)))
@@ -4747,5 +4710,4 @@ def mx_post_parse_cmd_line(args):
47474710
'graalvm-enter': [graalvm_enter, ''],
47484711
'graalvm-show': [graalvm_show, ''],
47494712
'graalvm-vm-name': [print_graalvm_vm_name, ''],
4750-
'standalone-home': [print_standalone_home, ['comp-dir-name', 'type']],
47514713
})

0 commit comments

Comments
 (0)