File tree Expand file tree Collapse file tree 8 files changed +31
-13
lines changed Expand file tree Collapse file tree 8 files changed +31
-13
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,8 @@ before_install:
2626install :
2727 # Install dependencies
2828 - opam pin add --no-action sequence .
29- - opam install oasis
30- - opam install --deps-only sequence
29+ - opam install jbuilder base-bytes result
3130script :
3231 - make build
3332 - opam install qcheck qtest
34- - ./configure --enable-tests
3533 - make test
Original file line number Diff line number Diff line change 55 jbuilder build @install
66
77test :
8- jbuilder runtest
8+ jbuilder runtest --no-buffer
99
1010clean :
1111 jbuilder clean
Original file line number Diff line number Diff line change 11
22QTEST_PREAMBLE =''
3- DONTTEST =../src/sequenceLabels.ml
3+ DONTTEST =../src/sequenceLabels.ml ../src/mkflags.ml
44QTESTABLE =$(filter-out $(DONTTEST ) , \
55 $(wildcard ../src/* .ml) \
66 $(wildcard ../src/* .mli) \
Original file line number Diff line number Diff line change 11
22(rule
33 ((targets (run_qtest.ml))
4- (deps ((file Makefile)))
4+ (deps ((file Makefile) )) ; (glob_files ../src/**/*.ml{,i}) ))
55 (fallback)
66 ;(libraries (qtest qcheck))
77 (action
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ homepage: "https://github.com/c-cube/sequence/"
3131depopts: [
3232 "base-bigarray"
3333]
34- doc: "http ://cedeela.fr/~simon/software/ sequence/Sequence.html "
34+ doc: "https ://c-cube.github.io/ sequence/"
3535bug-reports: "https://github.com/c-cube/sequence/issues"
3636dev-repo: "https://github.com/c-cube/sequence.git"
Original file line number Diff line number Diff line change 55 (libraries (sequence bigarray))
66 (wrapped false)
77 (optional)
8- (flags (:standard -w +a-4-42-44-48-50-58-32-60@8 -w -33 -safe-string -color always))
9- (ocamlopt_flags (:standard -O3 -color always
10- -unbox-closures -unbox-closures-factor 20))
8+ (flags (:standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string))
9+ (ocamlopt_flags (:standard (:include ../flambda.flags)))
1110 ))
Original file line number Diff line number Diff line change 1+ (rule
2+ ((targets (flambda.flags))
3+ (deps ((file mkflags.ml)))
4+ (fallback)
5+ (action
6+ (run ocaml ./mkflags.ml))
7+ ))
18
29(library
310 ((name sequence)
411 (public_name sequence)
512 (wrapped false)
6- (flags (:standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string -color always -nolabels ))
7- (ocamlopt_flags (:standard -O3 -color always
8- -unbox-closures -unbox-closures-factor 20 ))
13+ (modules (Sequence SequenceLabels ))
14+ (flags (:standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string -nolabels))
15+ (ocamlopt_flags (:standard (:include flambda.flags) ))
916 (libraries (bytes result))
1017 ))
1118
Original file line number Diff line number Diff line change 1+
2+ let () =
3+ let major, minor =
4+ Scanf. sscanf Sys. ocaml_version " %u.%u"
5+ (fun major minor -> major, minor)
6+ in
7+ let after_4_3 = (major, minor) > = (4 , 3 ) in
8+ let flags_file = open_out " flambda.flags" in
9+ if after_4_3 then (
10+ output_string flags_file " (-O3 -unbox-closures -unbox-closures-factor 20 -color always)\n " ;
11+ ) else (
12+ output_string flags_file " ()\n " ;
13+ );
14+ close_out flags_file
You can’t perform that action at this time.
0 commit comments