mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 03:09:40 +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}"
|
std::info "Loading module: ${m}"
|
||||||
eval "$( "${modulecmd}" bash load "${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
|
done
|
||||||
} # bm::load_build_dependencies
|
} # bm::load_build_dependencies
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user