Skip to content

Commit 3d3bfb0

Browse files
author
Caspar van Leeuwen
committed
Ok, there is no full Clang toolchain, as we have zero EasyConfigs for those. I Can however instatiate a Clang toolchain similar to how it's done here https://github.com/easybuilders/easybuild-easyblocks/blob/b436f55669e5e09fe49555c7ce6a3c456dbacc4a/easybuild/easyblocks/c/clang.py#L420 . That 'prepare_rpath_wrappers()' call would cause an error without the fix in this current PR
1 parent a10363d commit 3d3bfb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/framework/toolchain.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
from easybuild.tools.toolchain.mpi import get_mpi_cmd_template
5757
from easybuild.tools.toolchain.toolchain import env_vars_external_module
5858
from easybuild.tools.toolchain.utilities import get_toolchain, search_toolchain
59+
from easybuild.toolchains.compiler.clang import Clang
5960

6061
easybuild.tools.toolchain.compiler.systemtools.get_compiler_family = lambda: st.POWER
6162

@@ -2622,8 +2623,8 @@ def test_toolchain_prepare_rpath(self):
26222623
fake_clang = os.path.join(self.test_prefix, 'fake', 'clang')
26232624
write_file(fake_clang, '#!/bin/bash\necho "$@"')
26242625
adjust_permissions(fake_clang, stat.S_IXUSR)
2625-
tc_clang = self.get_toolchain('ClangGCC', version='0.0.0')
2626-
tc_clang.prepare()
2626+
tc_clang = Clang(name='Clang', version='1')
2627+
tc_clang.prepare_rpath_wrappers()
26272628

26282629
# Check that the clang wrapper is indeed in place
26292630
res = which('clang', retain_all=True)

0 commit comments

Comments
 (0)