Merge branch 'cherry-pick-d003e91e' into '1.1.22'

Merge branch '390-build-system-add-check-that-a-dependency-load-successfully' into 'master'

See merge request Pmodules/src!420
This commit is contained in:
2025-02-19 10:39:00 +01:00
+6
View File
@@ -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