build-system: add check that a dependency was successfully loaded

This commit is contained in:
2025-02-19 10:37:13 +01:00
parent 4eb51369ee
commit 963467ea85
+6
View File
@@ -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