Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions easybuild/easyblocks/a/aocc.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def _aocc_guess_clang_version(self):
map_aocc_to_clang_ver = {
'2.3.0': '11.0.0',
'3.0.0': '12.0.0',
'3.1.0': '12.0.0',
}

if self.version in map_aocc_to_clang_ver:
Expand Down Expand Up @@ -116,6 +117,9 @@ def make_module_extra(self):
txt += self.module_generator.set_environment('ASAN_SYMBOLIZER_PATH', asan_symbolizer_path)
# setting the AOCChome path
txt += self.module_generator.set_environment('AOCChome', self.installdir)
# make sure clang/flang picks up GCCcore as GCC toolchain
txt += self.module_generator.set_alias('clang', 'clang --gcc-toolchain=$EBROOTGCCCORE')
txt += self.module_generator.set_alias('flang', 'flang --gcc-toolchain=$EBROOTGCCCORE')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SebastianAchilles Maybe we should install an actual wrapper script rather than just defining an alias, since an alias is not inherited into a subshell?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, a wrapper script sounds like a good idea. I implemented the wrapper in 86aa43b and 235484c

return txt

def make_module_req_guess(self):
Expand Down