Skip to content

Commit 900d851

Browse files
committed
fix installation
1 parent 31424b6 commit 900d851

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

jscomp/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,8 @@ install:
633633
./runtime/js_null.ml ./runtime/js_null.cmi \
634634
./runtime/js_undefined.ml ./runtime/js_undefined.cmi \
635635
./runtime/js_exn.ml ./runtime/js_exn.mli ./runtime/js_exn.cmi \
636+
./runtime/js_int.ml ./runtime/js_int.cmi \
637+
./runtime/js_float.ml ./runtime/js_float.cmi \
636638
./runtime/js_typed_array.ml ./runtime/js_typed_array.cmi $(DEST)
637639
cp ./stdlib/*.ml ./stdlib/*.mli $(DEST)
638640
# ./runtime/js_null_undefined.ml ./runtime/js_null_undefined.cmi

jscomp/build_tests/exports/src/demo.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
let _ =
44
Js.Int.toString,
5-
Js.Float.isNan
5+
Js.Float.isNaN

jscomp/js.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ ocamlc.opt -w -30-40 -no-check-prims -I bin bin/config_whole_compiler.mli bin/c
1818
# BS_PLAYGROUND=../../bucklescript-playground
1919
# NEED PRESET env varialbe BS_PLAYGROUND
2020
# node compiler_test.js in bucklescript-playground
21-
js_of_ocaml --toplevel +weak.js ./polyfill.js jsc.byte -I ./stdlib -I ./others/ -I ./runtime/ --file lazy.cmi:/cmis/lazy.cmi --file js.cmi:/cmis/js.cmi --file js_unsafe.cmi:/cmis/js_unsafe.cmi --file js_re.cmi:/cmis/js_re.cmi --file js_array.cmi:/cmis/js_array.cmi --file js_null.cmi:/cmis/js_null.cmi --file js_undefined.cmi:/cmis/js_undefined.cmi --file js_internal.cmi:/cmis/js_internal.cmi --file js_types.cmi:/cmis/js_types.cmi --file js_null_undefined.cmi:/cmis/js_null_undefined.cmi --file js_dict.cmi:/cmis/js_dict.cmi --file js_string.cmi:/cmis/js_string.cmi -o $BS_PLAYGROUND/exports.js
21+
js_of_ocaml --toplevel +weak.js ./polyfill.js jsc.byte -I ./stdlib -I ./others/ -I ./runtime/ \
22+
--file lazy.cmi:/cmis/lazy.cmi --file js.cmi:/cmis/js.cmi --file js_unsafe.cmi:/cmis/js_unsafe.cmi \
23+
--file js_re.cmi:/cmis/js_re.cmi --file js_array.cmi:/cmis/js_array.cmi --file js_null.cmi:/cmis/js_null.cmi \
24+
--file js_undefined.cmi:/cmis/js_undefined.cmi --file js_internal.cmi:/cmis/js_internal.cmi --file js_types.cmi:/cmis/js_types.cmi \
25+
--file js_null_undefined.cmi:/cmis/js_null_undefined.cmi --file js_dict.cmi:/cmis/js_dict.cmi --file js_string.cmi:/cmis/js_string.cmi\
26+
-o $BS_PLAYGROUND/exports.js
2227

2328

2429

0 commit comments

Comments
 (0)