diff --git a/src/Makefile b/src/Makefile index 124aa16a4..56fdf1639 100644 --- a/src/Makefile +++ b/src/Makefile @@ -198,9 +198,11 @@ node.top: DEVFLAGS= node.top: ${MINUTILS_LIB_IMPLS} ${UTILS_LIB_IMPLS} ${COMPILER_LIB_IMPLS} ${FULL_NODE_LIB_IMPLS} ( $(patsubst %, echo "#require \"%\";;" ; ,${NODE_PACKAGES}) ) > .ocamlinit.node ( $(patsubst %, echo "#mod_use \"%\";;" ; ,${MINUTILS_LIB_IMPLS} ${UTILS_LIB_IMPLS}) ) >> .ocamlinit.node - ( $(patsubst %, echo "open %;;" ; ,Error_monad Hash Utils) ) >> .ocamlinit.node + ( $(patsubst %, echo "open %;;" ; ,${NODE_OPENED_MODULES}) ) >> .ocamlinit.node ( $(patsubst %, echo "#mod_use \"%\";;" ; ,${COMPILER_LIB_IMPLS} ${FULL_NODE_LIB_IMPLS}) ) >> .ocamlinit.node - utop -init .ocamlinit.node ${UTOPFLAGS} + utop -I +compiler-libs ocamlcommon.cma -init .ocamlinit.node ${UTOPFLAGS} +## HACK: the explicit loading of `ocamlcommon.cma` is here to +## circumvent a bug in utop. https://github.com/diml/utop/issues/213 clean:: rm -f ${TZNODE}