Skip to content

Commit 2351b18

Browse files
committed
Merge branch 'master' into stable
2 parents 7d93f1f + 943cff0 commit 2351b18

File tree

8 files changed

+31
-13
lines changed

8 files changed

+31
-13
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ before_install:
2626
install:
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
3130
script:
3231
- make build
3332
- opam install qcheck qtest
34-
- ./configure --enable-tests
3533
- make test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build:
55
jbuilder build @install
66

77
test:
8-
jbuilder runtest
8+
jbuilder runtest --no-buffer
99

1010
clean:
1111
jbuilder clean

qtest/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
QTEST_PREAMBLE=''
3-
DONTTEST=../src/sequenceLabels.ml
3+
DONTTEST=../src/sequenceLabels.ml ../src/mkflags.ml
44
QTESTABLE=$(filter-out $(DONTTEST), \
55
$(wildcard ../src/*.ml) \
66
$(wildcard ../src/*.mli) \

qtest/jbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

sequence.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ homepage: "https://github.com/c-cube/sequence/"
3131
depopts: [
3232
"base-bigarray"
3333
]
34-
doc: "http://cedeela.fr/~simon/software/sequence/Sequence.html"
34+
doc: "https://c-cube.github.io/sequence/"
3535
bug-reports: "https://github.com/c-cube/sequence/issues"
3636
dev-repo: "https://github.com/c-cube/sequence.git"

src/bigarray/jbuild

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
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
))

src/jbuild

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
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

src/mkflags.ml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)