diff --git a/eb_hooks.py b/eb_hooks.py index 31f2b9588d..3147fc9bf5 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -268,6 +268,22 @@ def pre_configure_hook_wrf_aarch64(self, *args, **kwargs): raise EasyBuildError("WRF-specific hook triggered for non-WRF easyconfig?!") +def pre_configure_hook_PLUMED_aarch64(self, *args, **kwargs): + """ + pre-configure hook for PLUMED: + - remove unsupported --enable-asmjit option on aarch64 + """ + + if self.name == 'PLUMED': + if get_cpu_architecture() == AARCH64: + configopts = self.cfg['configopts'] + regex = re.compile(r'--enable-asmjit') + if re.search(regex, configopts): + self.cfg['configopts'] = regex.sub('', configopts) + else: + raise EasyBuildError("PLUMED-specific hook triggered for non-PLUMED easyconfig?!") + + def pre_test_hook(self,*args, **kwargs): """Main pre-test hook: trigger custom functions based on software name.""" if self.name in PRE_TEST_HOOKS: @@ -346,6 +362,7 @@ def pre_single_extension_isoband(ext, *args, **kwargs): 'MetaBAT': pre_configure_hook_metabat_filtered_zlib_dep, 'OpenBLAS': pre_configure_hook_openblas_optarch_generic, 'WRF': pre_configure_hook_wrf_aarch64, + 'PLUMED': pre_configure_hook_PLUMED_aarch64, } PRE_TEST_HOOKS = {