@@ -717,26 +717,26 @@ def post_prepare_hook_highway_handle_test_compilation_issues(self, *args, **kwar
717717 update_build_option ('optarch' , self .orig_optarch )
718718
719719
720- def pre_prepare_hook_llvm15_a64fx (self , * args , ** kwargs ):
720+ def pre_prepare_hook_llvm_a64fx (self , * args , ** kwargs ):
721721 """
722- Solve issues with compiling LLVM 15.0.5 on A64FX by changing the optarch build option.
722+ Solve issues with compiling LLVM 14 and 15 on A64FX by changing the optarch build option.
723723 Rust 1.65.0 also includes LLVM 15, so we do the same for that application.
724724 cfr. https://github.com/EESSI/software-layer/issues/1213
725725 """
726726 cpu_target = get_eessi_envvar ('EESSI_SOFTWARE_SUBDIR' )
727727 if cpu_target == CPU_TARGET_A64FX :
728- if (self .name == 'LLVM' and self .version == ' 15.0.5' ) or (self .name == 'Rust' and self .version == '1.65.0' ):
728+ if (self .name == 'LLVM' and self .version in [ '14.0.6' , ' 15.0.5'] ) or (self .name == 'Rust' and self .version == '1.65.0' ):
729729 self .orig_optarch = build_option ('optarch' )
730730 update_build_option ('optarch' , 'march=armv8.2-a' )
731731
732732
733- def post_prepare_hook_llvm15_a64fx (self , * args , ** kwargs ):
733+ def post_prepare_hook_llvm_a64fx (self , * args , ** kwargs ):
734734 """
735- Post-prepare hook for LLVM 15 to reset optarch build option.
735+ Post-prepare hook for LLVM 14 and 15 on A64FX to reset optarch build option.
736736 """
737737 cpu_target = get_eessi_envvar ('EESSI_SOFTWARE_SUBDIR' )
738738 if cpu_target == CPU_TARGET_A64FX :
739- if (self .name == 'LLVM' and self .version == ' 15.0.5' ) or (self .name == 'Rust' and self .version == '1.65.0' ):
739+ if (self .name == 'LLVM' and self .version in [ '14.0.6' , ' 15.0.5'] ) or (self .name == 'Rust' and self .version == '1.65.0' ):
740740 update_build_option ('optarch' , self .orig_optarch )
741741
742742
@@ -1620,15 +1620,15 @@ def post_easyblock_hook(self, *args, **kwargs):
16201620
16211621PRE_PREPARE_HOOKS = {
16221622 'Highway' : pre_prepare_hook_highway_handle_test_compilation_issues ,
1623- 'LLVM' : pre_prepare_hook_llvm15_a64fx ,
1624- 'Rust' : pre_prepare_hook_llvm15_a64fx ,
1623+ 'LLVM' : pre_prepare_hook_llvm_a64fx ,
1624+ 'Rust' : pre_prepare_hook_llvm_a64fx ,
16251625}
16261626
16271627POST_PREPARE_HOOKS = {
16281628 'GCCcore' : post_prepare_hook_gcc_prefixed_ld_rpath_wrapper ,
16291629 'Highway' : post_prepare_hook_highway_handle_test_compilation_issues ,
1630- 'LLVM' : post_prepare_hook_llvm15_a64fx ,
1631- 'Rust' : post_prepare_hook_llvm15_a64fx ,
1630+ 'LLVM' : post_prepare_hook_llvm_a64fx ,
1631+ 'Rust' : post_prepare_hook_llvm_a64fx ,
16321632}
16331633
16341634PRE_CONFIGURE_HOOKS = {
0 commit comments