Skip to content

Commit ac4be2f

Browse files
committed
only allow missing ld.gold, print an error for other missing wrappers
1 parent a4bca65 commit ac4be2f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

eb_hooks.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,11 @@ def post_prepare_hook_gcc_prefixed_ld_rpath_wrapper(self, *args, **kwargs):
332332
for cmd in ('ld', 'ld.gold', 'ld.bfd'):
333333
wrapper = which(cmd)
334334
if wrapper is None:
335-
# if no wrapper is found, the build machine does not have the corresponding command
336-
# (e.g. there is no ld.gold in newer compatibility layers),
337-
# and we can simply skip this step
338-
continue
335+
if cmd in ['ld.gold']:
336+
# newer compatibility layers don't have ld.gold
337+
continue
338+
else:
339+
raise EasyBuildError(f"No RPATH wrapper script found for {cmd}.")
339340
self.log.info("Path to %s wrapper: %s" % (cmd, wrapper))
340341
wrapper_dir = os.path.dirname(wrapper)
341342
prefix_wrapper = os.path.join(wrapper_dir, cmd_prefix + cmd)

0 commit comments

Comments
 (0)