Skip to content

Commit 3b3e9d1

Browse files
committed
replace hardcoded variable settings in ACML with new Toolchain._add_dependency_liker_paths and Toolchain._add_dependency_cpp_headers methods
1 parent 3493861 commit 3b3e9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/toolchains/linalg/acml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def _set_blas_variables(self):
7777
for root in self.get_software_root(self.BLAS_MODULE_NAME):
7878
subdirs = self.ACML_SUBDIRS_MAP[self.COMPILER_FAMILY]
7979
self.BLAS_LIB_DIR = [os.path.join(x, 'lib') for x in subdirs]
80-
self.variables.append_exists('LDFLAGS', root, self.BLAS_LIB_DIR, append_all=True)
80+
self._add_dependency_linker_paths(root, extra_dirs=self.BLAS_LIB_DIR)
8181
incdirs = [os.path.join(x, 'include') for x in subdirs]
82-
self.variables.append_exists('CPPFLAGS', root, incdirs, append_all=True)
82+
self._add_dependency_cpp_headers(root, extra_dirs=incdirs)
8383
except Exception:
8484
raise EasyBuildError("_set_blas_variables: ACML set LDFLAGS/CPPFLAGS unknown entry in ACML_SUBDIRS_MAP "
8585
"with compiler family %s", self.COMPILER_FAMILY)

0 commit comments

Comments
 (0)