mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 18:59:39 +02:00
build-system: add check that a dependency was successfully loaded
This commit is contained in:
@@ -914,6 +914,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