File tree 6 files changed +15
-16
lines changed
6 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -517,23 +517,13 @@ bin/flow.js: _build/scripts/ppx_gen_flowlibs.exe $(LIBFUZZY_PATH_DEP) $(BUILT_OB
517
517
$(INCLUDE_OPTS ) $(JS_FINDLIB_OPTS ) \
518
518
-lflags " $( BYTECODE_LINKER_FLAGS) " \
519
519
src/flow_dot_js.byte
520
- # js_of_ocaml has no ability to upgrade warnings to errors, but we want to
521
- # error if, for example, there are any unimplemented C primitives.
522
520
js_of_ocaml \
521
+ --Werror \
523
522
--opt 3 \
524
523
--disable genprim \
525
524
--extern-fs \
526
525
-o bin/flow.js \
527
- $(JS_STUBS ) _build/src/flow_dot_js.byte \
528
- 2> _build/js_of_ocaml.err; \
529
- ret=$$? ; \
530
- if [ ! $$ ret ]; then \
531
- exit $$ ret; \
532
- elif [ -s _build/js_of_ocaml.err ]; then \
533
- printf " js_of_ocaml produced output on stderr:\n" 1>&2 ; \
534
- cat _build/js_of_ocaml.err 1>&2 ; \
535
- exit 1; \
536
- fi
526
+ $(JS_STUBS ) _build/src/flow_dot_js.byte
537
527
538
528
js : bin/flow.js
539
529
Original file line number Diff line number Diff line change 1
1
(env
2
2
(_
3
3
(flags
4
- (:standard -w @a-4-29-35-41-42-44-45-48-50-58-70))))
4
+ (:standard -w @a-4-29-35-41-42-44-45-48-50-58-70))
5
+ (js_of_ocaml
6
+ (flags --disable genprim --Werror))))
Original file line number Diff line number Diff line change 1
- (lang dune 2 .8 )
1
+ (lang dune 3 .0 )
2
2
( formatting ( enabled_for dune) )
Original file line number Diff line number Diff line change
1
+ (env
2
+ (opt
3
+ (js_of_ocaml
4
+ (compilation_mode whole_program)
5
+ (flags :standard --opt 3))))
6
+
1
7
(executable
2
8
(name flow)
3
9
(modes native byte_complete)
Original file line number Diff line number Diff line change 82
82
cd $(TOP ) ; \
83
83
$(OCB ) -no-links -pkgs js_of_ocaml $(REL_DIR ) /flow_parser_dot_js.byte; \
84
84
[ -e " $( REL_DIR) /flow_parser.js" -a " $( REL_DIR) /flow_parser.js" -nt " _build/$( REL_DIR) /flow_parser_dot_js.byte" ] || \
85
- js_of_ocaml --opt 3 \
86
- --no-extern-fs \
85
+ js_of_ocaml --Werror --disable genprim --opt 3 --no-extern-fs \
87
86
-o $(REL_DIR ) /flow_parser.js \
88
87
_build/$(REL_DIR ) /flow_parser_dot_js.byte
89
88
Original file line number Diff line number Diff line change 11
11
(name flow_parser_dot_js)
12
12
(modes js)
13
13
(modules flow_parser_js flow_parser_dot_js)
14
+ (js_of_ocaml
15
+ (flags :standard --no-extern-fs))
14
16
(libraries flow_parser js_of_ocaml))
15
17
16
18
(dirs
You can’t perform that action at this time.
0 commit comments