@@ -3432,7 +3432,6 @@ def _release_version():
3432
3432
))
3433
3433
main_dists = {
3434
3434
'graalvm' : [],
3435
- 'graalvm_standalones' : [],
3436
3435
}
3437
3436
with_non_rebuildable_configs = False
3438
3437
@@ -3552,7 +3551,6 @@ def register_main_dist(dist, label):
3552
3551
else :
3553
3552
needs_java_standalone_jimage = True
3554
3553
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' )
3556
3554
3557
3555
# Use `main_component.library_configs` rather than `_get_library_configs(main_component)` because we
3558
3556
# need to create a `NativeLibraryLauncherProject` for the JVM standalone even when one of the
@@ -3568,7 +3566,6 @@ def register_main_dist(dist, label):
3568
3566
only_native_libraries = not main_component .library_configs or (svm_support .is_supported () and not _has_skipped_libraries (main_component ))
3569
3567
if only_native_launchers and only_native_libraries :
3570
3568
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' )
3572
3569
3573
3570
if needs_java_standalone_jimage :
3574
3571
has_lib_graal = _get_libgraal_component () is not None
@@ -3646,11 +3643,9 @@ def register_main_dist(dist, label):
3646
3643
jimage_project = final_jimage_project ,
3647
3644
))
3648
3645
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
3651
3647
for label , dists in main_dists .items ():
3652
3648
if dists :
3653
- all_main_dists += dists
3654
3649
register_distribution (mx .LayoutDirDistribution (
3655
3650
suite = _suite ,
3656
3651
name = label .upper (),
@@ -3664,19 +3659,6 @@ def register_main_dist(dist, label):
3664
3659
defaultBuild = False ,
3665
3660
))
3666
3661
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
-
3680
3662
3681
3663
def _needs_stage1_jimage (stage1_dist , final_dist ):
3682
3664
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):
3890
3872
return out .data .strip ()
3891
3873
3892
3874
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
-
3903
3875
def print_graalvm_components (args ):
3904
3876
"""print the name of the GraalVM distribution"""
3905
3877
parser = ArgumentParser (prog = 'mx graalvm-components' , description = 'Print the list of GraalVM components' )
@@ -3935,15 +3907,6 @@ def print_graalvm_home(args):
3935
3907
print (graalvm_home (stage1 = args .stage1 , fatalIfMissing = False ))
3936
3908
3937
3909
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
-
3947
3910
def print_graalvm_type (args ):
3948
3911
"""print the GraalVM artifact type"""
3949
3912
# Required by the CI jsonnet files that trigger structure checks
@@ -4221,7 +4184,7 @@ def graalvm_show(args, forced_graalvm_dist=None):
4221
4184
for config in cfg ['configs' ]:
4222
4185
print (f" { config } (from { cfg ['source' ]} )" )
4223
4186
if args .verbose :
4224
- for dist_name in 'GRAALVM' , 'GRAALVM_STANDALONES' , 'ALL_GRAALVM_ARTIFACTS' :
4187
+ for dist_name in 'GRAALVM' :
4225
4188
dist = mx .distribution (dist_name , fatalIfMissing = False )
4226
4189
if dist is not None :
4227
4190
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):
4747
4710
'graalvm-enter' : [graalvm_enter , '' ],
4748
4711
'graalvm-show' : [graalvm_show , '' ],
4749
4712
'graalvm-vm-name' : [print_graalvm_vm_name , '' ],
4750
- 'standalone-home' : [print_standalone_home , ['comp-dir-name' , 'type' ]],
4751
4713
})
0 commit comments