tangled
alpha
login
or
join now
anil.recoil.org
/
unpac-unpac
0
fork
atom
The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork
atom
overview
issues
pulls
pipelines
Fix test on 4.02
David Allsopp
5 years ago
67f04800
a182dd3c
+9
1 changed file
expand all
collapse all
unified
split
vendor
opam
opam-file-format
tests
hygiene
dune
+9
vendor/opam/opam-file-format/tests/hygiene/dune
···
4
4
(name opamBaseParser)
5
5
(libraries opam-file-format)
6
6
(modules OpamParserTypes OpamBaseParser)
7
7
+
(flags :standard (:include flags.sexp))
7
8
(action (run %{test} %{version:opam-file-format})))
8
9
9
10
(ocamlyacc OpamBaseParser)
···
13
14
(progn (cat ../../src/opamBaseParser.mly)
14
15
; If this assertion fails, OpamBaseParser.version is wrong
15
16
(echo "let () = assert (Scanf.sscanf Sys.argv.(1) \"%u.%u\" (fun x y -> (x, y)) = version)"))))
17
17
+
18
18
+
(rule
19
19
+
(with-stdout-to flags.ml
20
20
+
(echo "print_string (if String.sub Sys.ocaml_version 0 5 = \"4.02.\" then \"(-w -50)\" else \"()\")")))
21
21
+
22
22
+
(rule
23
23
+
(with-stdout-to flags.sexp
24
24
+
(run ocaml %{dep:flags.ml})))