Skip to content

Commit 9a53453

Browse files
committed
[GR-21365] Fix duplicated slashes in GraalVM layout distributions.
PullRequest: graal/5515
2 parents 998163d + d954853 commit 9a53453

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/mx.sdk/mx_sdk_vm_impl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ def _get_component_type_base(c, apply_substitutions=False):
208208
result = '<jre_base>/lib/'
209209
elif isinstance(c, mx_sdk.GraalVMSvmMacro):
210210
svm_component = get_component('svm', stage1=True)
211-
result = _get_component_type_base(svm_component, apply_substitutions=apply_substitutions) + '/' + svm_component.dir_name + '/macros/'
211+
result = _get_component_type_base(svm_component, apply_substitutions=apply_substitutions) + svm_component.dir_name + '/macros/'
212212
elif isinstance(c, mx_sdk.GraalVMSvmStaticLib):
213213
svm_component = get_component('svm')
214-
result = _get_component_type_base(svm_component, apply_substitutions=apply_substitutions) + '/' + svm_component.dir_name + '/static-libs/'
214+
result = _get_component_type_base(svm_component, apply_substitutions=apply_substitutions) + svm_component.dir_name + '/static-libs/'
215215
elif isinstance(c, mx_sdk.GraalVmComponent):
216216
result = '<jdk_base>/'
217217
else:
@@ -2065,7 +2065,7 @@ def add_files_from_component(comp, path_prefix, excluded_paths):
20652065

20662066
sorted_suites = sorted(mx.suites(), key=lambda s: s.name)
20672067
metadata = BaseGraalVmLayoutDistribution._get_metadata(sorted_suites)
2068-
layout.setdefault(base_dir + '/release', []).append('string:' + metadata)
2068+
layout.setdefault(base_dir + 'release', []).append('string:' + metadata)
20692069

20702070
for dependency_name, details in component.standalone_dependencies.items():
20712071
dependency_path = details[0]

0 commit comments

Comments
 (0)