mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 02:39:39 +02:00
Merge branch '390-build-system-add-check-that-a-dependency-load-successfully' into 'master'
Resolve "build-system: add check that a dependency load successfully." Closes #390 See merge request Pmodules/src!419 (cherry picked from commitd003e91e1b)963467eabuild-system: add check that a dependency was successfully loaded Co-authored-by: gsell <achim.gsell@psi.ch>
This commit is contained in:
@@ -1042,6 +1042,12 @@ _build_module() {
|
||||
|
||||
std::info "Loading module: ${m}"
|
||||
eval "$( "${modulecmd}" bash load "${m}" )"
|
||||
if ! bm::is_loaded "$m"; then
|
||||
"${modulecmd}" bash list
|
||||
std::die 5 \
|
||||
"%s " "${m}:" \
|
||||
"module cannot be loaded!"
|
||||
fi
|
||||
done
|
||||
} # bm::load_build_dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user