From 59a79340c032ee14de4d22bf998a1e061a0a3bca Mon Sep 17 00:00:00 2001 From: Glenn Slotte Date: Sun, 4 Feb 2018 20:09:24 +0100 Subject: [PATCH] disable jsoo share feature for repl build --- jscomp/repl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jscomp/repl.js b/jscomp/repl.js index 48baa2f857..32a81690d2 100755 --- a/jscomp/repl.js +++ b/jscomp/repl.js @@ -60,7 +60,7 @@ function prepare() { e(`make bin/jsoo_reactjs_jsx_ppx_v2.ml`) e(`ocamlc.opt -w -30-40 -no-check-prims -o jsoo_reactjs_jsx_ppx_v2.byte -I +compiler-libs ocamlcommon.cma bin/jsoo_reactjs_jsx_ppx_v2.ml`) - e(`js_of_ocaml --toplevel +weak.js +toplevel.js jsoo_reactjs_jsx_ppx_v2.byte -I bin -I ../vendor/ocaml/lib/ocaml/compiler-libs -o ${playground}/jsoo_reactjs_jsx_ppx_v2.js`) + e(`js_of_ocaml --disable share --toplevel +weak.js +toplevel.js jsoo_reactjs_jsx_ppx_v2.byte -I bin -I ../vendor/ocaml/lib/ocaml/compiler-libs -o ${playground}/jsoo_reactjs_jsx_ppx_v2.js`) } @@ -87,7 +87,7 @@ var cmi_files = `moreLabels`, `queue`, `scanf`, `sort`,`stack`, `stdLabels`, `stream`, `stringLabels` ].map(x => `${x}.cmi:/static/cmis/${x}.cmi`).map(x => `--file ${x}`).join(` `) -e(`js_of_ocaml --toplevel +weak.js ./polyfill.js jsc.byte ${includes} ${cmi_files} -o ${playground}/exports.js`) +e(`js_of_ocaml --disable share --toplevel +weak.js ./polyfill.js jsc.byte ${includes} ${cmi_files} -o ${playground}/exports.js`)