@grain/binaryen.ml 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- binaryen-archive/CHANGELOG.md +22 -0
- binaryen-archive/README.md +27 -3
- binaryen-archive/binaryen.opam +8 -8
- binaryen-archive/esy.lock/index.json +537 -460
- binaryen-archive/esy.lock/opam/{base.v0.14.1 → base.v0.14.2}/opam +4 -4
- binaryen-archive/esy.lock/opam/biniou.1.2.1/opam +1 -1
- binaryen-archive/esy.lock/opam/{cppo.1.6.7 → cppo.1.6.8}/opam +4 -6
- binaryen-archive/esy.lock/opam/{csexp.1.4.0 → csexp.1.5.1}/opam +11 -9
- binaryen-archive/esy.lock/opam/{dune-build-info.2.8.2 → dune-build-info.2.9.1}/opam +5 -5
- binaryen-archive/esy.lock/opam/{dune-configurator.2.8.2 → dune-configurator.2.9.1}/opam +5 -5
- binaryen-archive/esy.lock/opam/{dune.2.8.2 → dune.2.9.1}/opam +4 -4
- binaryen-archive/esy.lock/opam/easy-format.1.3.2/opam +1 -1
- binaryen-archive/esy.lock/opam/{fix.20201120 → fix.20211231}/opam +7 -5
- binaryen-archive/esy.lock/opam/js_of_ocaml-compiler.3.11.0/opam +54 -0
- binaryen-archive/esy.lock/opam/js_of_ocaml-ppx.3.11.0/opam +44 -0
- binaryen-archive/esy.lock/opam/js_of_ocaml.3.11.0/opam +45 -0
- binaryen-archive/esy.lock/opam/{menhir.20201216 → menhir.20211128}/opam +8 -6
- binaryen-archive/esy.lock/opam/{menhirLib.20201216 → menhirLib.20211128}/opam +8 -6
- binaryen-archive/esy.lock/opam/{menhirSdk.20201216 → menhirSdk.20211128}/opam +8 -6
- binaryen-archive/esy.lock/opam/ocaml-compiler-libs.v0.12.4/opam +39 -0
- binaryen-archive/esy.lock/opam/{ocaml-lsp-server.1.4.0 → ocaml-lsp-server.1.9.0}/opam +15 -12
- binaryen-archive/esy.lock/opam/{ocaml-migrate-parsetree.2.1.0 → ocaml-migrate-parsetree.2.3.0}/opam +13 -10
- binaryen-archive/esy.lock/opam/ocaml-version.3.4.0/opam +49 -0
- binaryen-archive/esy.lock/opam/ocamlbuild.0.14.0/opam +1 -1
- binaryen-archive/esy.lock/opam/{ocamlfind.1.8.1 → ocamlfind.1.9.1}/opam +19 -39
- binaryen-archive/esy.lock/opam/ocamlformat-rpc-lib.0.19.0/opam +40 -0
- binaryen-archive/esy.lock/opam/ocamlformat.0.18.0/opam +56 -0
- binaryen-archive/esy.lock/opam/{odoc.1.5.2 → odoc.1.5.3}/opam +12 -12
- binaryen-archive/esy.lock/opam/pp.1.1.2/opam +58 -0
- binaryen-archive/esy.lock/opam/ppx_derivers.1.2.1/opam +1 -1
- binaryen-archive/esy.lock/opam/ppx_yojson_conv_lib.v0.14.0/opam +2 -2
- binaryen-archive/esy.lock/opam/{ppxlib.0.21.0 → ppxlib.0.22.2}/opam +40 -32
- binaryen-archive/esy.lock/opam/{re.1.9.0 → re.1.10.3}/opam +8 -4
- binaryen-archive/esy.lock/opam/result.1.5/opam +2 -2
- binaryen-archive/esy.lock/opam/sexplib0.v0.14.0/opam +2 -2
- binaryen-archive/esy.lock/opam/spawn.v0.15.0/opam +56 -0
- binaryen-archive/esy.lock/opam/stdio.v0.14.0/opam +2 -2
- binaryen-archive/esy.lock/opam/{topkg.1.0.3 → topkg.1.0.4}/opam +18 -22
- binaryen-archive/esy.lock/opam/tyxml.4.5.0/opam +42 -0
- binaryen-archive/esy.lock/opam/uucp.14.0.0/opam +41 -0
- binaryen-archive/esy.lock/opam/{uuseg.13.0.0 → uuseg.14.0.0}/opam +22 -28
- binaryen-archive/esy.lock/opam/yojson.1.7.0/opam +1 -1
- binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.8.1_opam_override/files/findlib-1.8.1.patch → opam__s__ocamlfind_opam__c__1.9.1_opam_override/files/findlib-1.9.1.patch} +0 -0
- binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.8.1_opam_override → opam__s__ocamlfind_opam__c__1.9.1_opam_override}/package.json +1 -1
- binaryen-archive/{vendor/js/index.es5.js → js/binaryen.es5.js} +0 -0
- binaryen-archive/js/dune +1 -6
- binaryen-archive/package.json +14 -20
- binaryen-archive/src/dune +3 -41
- binaryen-archive/src/ocaml_helpers.c +0 -8
- binaryen-archive/src/ocaml_helpers.h +0 -3
- binaryen-archive/test/config/dune +8 -0
- binaryen-archive/test/config/ocamlopt_flags.ml +16 -0
- binaryen-archive/test/dune +4 -0
- binaryen-archive/esy.lock/opam/conf-m4.1/opam +0 -22
- binaryen-archive/esy.lock/opam/dot-merlin-reader.4.1/opam +0 -30
- binaryen-archive/esy.lock/opam/js_of_ocaml-compiler.3.9.1/opam +0 -40
- binaryen-archive/esy.lock/opam/js_of_ocaml-ppx.3.9.0/opam +0 -30
- binaryen-archive/esy.lock/opam/js_of_ocaml.3.9.0/opam +0 -31
- binaryen-archive/esy.lock/opam/ocaml-compiler-libs.v0.12.3/opam +0 -29
- binaryen-archive/esy.lock/opam/ocamlfind.1.8.1/files/ocaml-stub +0 -4
- binaryen-archive/esy.lock/opam/ocamlfind.1.8.1/files/ocamlfind.install +0 -6
- binaryen-archive/esy.lock/opam/ocamlformat.0.15.1/opam +0 -41
- binaryen-archive/esy.lock/opam/tyxml.4.4.0/opam +0 -47
- binaryen-archive/esy.lock/opam/uucp.13.0.0/opam +0 -44
- binaryen-archive/esy.lock/overrides/opam__s__conf_m4_opam__c__1_opam_override/package.json +0 -6
- binaryen-archive/src/config/dune +0 -8
- binaryen-archive/src/config/library_flags.ml +0 -16
- binaryen-archive/vendor/binaryen-c.h +0 -2720
- binaryen-archive/vendor/linux/libbinaryen.a +0 -0
- binaryen-archive/vendor/linux/libbinaryen.so +0 -0
- binaryen-archive/vendor/macosx/libbinaryen.a +0 -0
- binaryen-archive/vendor/macosx/libbinaryen.dylib +0 -0
- binaryen-archive/vendor/mingw64/libbinaryen.a +0 -0
- binaryen-archive/vendor/mingw64/libbinaryen.dll +0 -0
- binaryen-archive/vendor/wasm-delegations.h +0 -83
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
opam-version: "2.0"
|
|
2
|
+
synopsis: "A library for building correct HTML and SVG documents"
|
|
3
|
+
description:
|
|
4
|
+
"TyXML provides a set of convenient combinators that uses the OCaml type system to ensure the validity of the generated documents. TyXML can be used with any representation of HTML and SVG: the textual one, provided directly by this package, or DOM trees (`js_of_ocaml-tyxml`) virtual DOM (`virtual-dom`) and reactive or replicated trees (`eliom`). You can also create your own representation and use it to instantiate a new set of combinators."
|
|
5
|
+
maintainer: ["dev@ocsigen.org"]
|
|
6
|
+
authors: ["The ocsigen team"]
|
|
7
|
+
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
|
|
8
|
+
homepage: "https://github.com/ocsigen/tyxml"
|
|
9
|
+
doc: "https://ocsigen.org/tyxml/latest/manual/intro"
|
|
10
|
+
bug-reports: "https://github.com/ocsigen/tyxml/issues"
|
|
11
|
+
depends: [
|
|
12
|
+
"dune" {>= "2.0"}
|
|
13
|
+
"ocaml" {>= "4.02"}
|
|
14
|
+
"alcotest" {with-test}
|
|
15
|
+
"re" {>= "1.5.0"}
|
|
16
|
+
"seq"
|
|
17
|
+
"uutf" {>= "1.0.0"}
|
|
18
|
+
]
|
|
19
|
+
build: [
|
|
20
|
+
["dune" "subst"] {dev}
|
|
21
|
+
[
|
|
22
|
+
"dune"
|
|
23
|
+
"build"
|
|
24
|
+
"-p"
|
|
25
|
+
name
|
|
26
|
+
"-j"
|
|
27
|
+
jobs
|
|
28
|
+
"@install"
|
|
29
|
+
"@runtest" {with-test}
|
|
30
|
+
"@doc" {with-doc}
|
|
31
|
+
]
|
|
32
|
+
]
|
|
33
|
+
dev-repo: "git+https://github.com/ocsigen/tyxml.git"
|
|
34
|
+
x-commit-hash: "ef431a4bceaefb2d9248e79092e6c1a1a9420095"
|
|
35
|
+
url {
|
|
36
|
+
src:
|
|
37
|
+
"https://github.com/ocsigen/tyxml/releases/download/4.5.0/tyxml-4.5.0.tbz"
|
|
38
|
+
checksum: [
|
|
39
|
+
"sha256=c69accef5df4dd89d38f6aa0baad01e8fda4e9e98bb7dad61bec1452c5716068"
|
|
40
|
+
"sha512=772535441b09c393d53c27152e65f404a0a541aa0cea1bda899a8d751ab64d1729237e583618c3ff33d75e3865d53503d1ea413c6bbc8c68c413347efd1709b3"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
opam-version: "2.0"
|
|
2
|
+
synopsis: """Unicode character properties for OCaml"""
|
|
3
|
+
maintainer: ["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
|
|
4
|
+
authors: ["The uucp programmers"]
|
|
5
|
+
homepage: "https://erratique.ch/software/uucp"
|
|
6
|
+
doc: "https://erratique.ch/software/uucp/doc/"
|
|
7
|
+
dev-repo: "git+https://erratique.ch/repos/uucp.git"
|
|
8
|
+
bug-reports: "https://github.com/dbuenzli/uucp/issues"
|
|
9
|
+
license: ["ISC"]
|
|
10
|
+
tags: ["unicode" "text" "character" "org:erratique"]
|
|
11
|
+
depends: ["ocaml" {>= "4.03.0"}
|
|
12
|
+
"ocamlfind" {build}
|
|
13
|
+
"ocamlbuild" {build}
|
|
14
|
+
"topkg" {build & >= "1.0.3"}
|
|
15
|
+
"uucd" {with-test}
|
|
16
|
+
"uunf" {with-test}
|
|
17
|
+
"uutf" {with-test}]
|
|
18
|
+
depopts: ["uutf"
|
|
19
|
+
"uunf"
|
|
20
|
+
"cmdliner"]
|
|
21
|
+
conflicts: ["uutf" {< "1.0.1"}
|
|
22
|
+
"cmdliner" {< "1.0.0"}]
|
|
23
|
+
build: [["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"
|
|
24
|
+
"--with-uutf" "%{uutf:installed}%"
|
|
25
|
+
"--with-uunf" "%{uunf:installed}%"
|
|
26
|
+
"--with-cmdliner" "%{cmdliner:installed}%" ]]
|
|
27
|
+
description: """
|
|
28
|
+
Uucp is an OCaml library providing efficient access to a selection of
|
|
29
|
+
character properties of the [Unicode character database][1].
|
|
30
|
+
|
|
31
|
+
Uucp is independent from any Unicode text data structure and has no
|
|
32
|
+
dependencies. It is distributed under the ISC license.
|
|
33
|
+
|
|
34
|
+
[1]: http://www.unicode.org/reports/tr44/
|
|
35
|
+
|
|
36
|
+
Home page: http://erratique.ch/software/uucp"""
|
|
37
|
+
url {
|
|
38
|
+
src: "https://erratique.ch/software/uucp/releases/uucp-14.0.0.tbz"
|
|
39
|
+
checksum: "sha512=2d0224aed5d5accbb121624898f08598e8c74a2415942f159a54221c0cdac62ed64fc70a039c833e50110cefce77754ada9ac2d58f79a6fc9331135326fe6899"}
|
|
40
|
+
post-messages: ["If the build fails with \"ocamlopt.opt got signal and exited\", issue 'ulimit -s unlimited' and retry."
|
|
41
|
+
{failure & (arch = "ppc64" | arch = "arm64")}]
|
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
opam-version: "2.0"
|
|
2
|
-
|
|
2
|
+
synopsis: """Unicode text segmentation for OCaml"""
|
|
3
|
+
maintainer: ["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
|
|
3
4
|
authors: ["The uuseg programmers"]
|
|
4
5
|
homepage: "https://erratique.ch/software/uuseg"
|
|
5
|
-
doc: "https://erratique.ch/software/uuseg"
|
|
6
|
+
doc: "https://erratique.ch/software/uuseg/doc/"
|
|
6
7
|
dev-repo: "git+https://erratique.ch/repos/uuseg.git"
|
|
7
8
|
bug-reports: "https://github.com/dbuenzli/uuseg/issues"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
depends: [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
depopts: [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
synopsis: """Unicode text segmentation for OCaml"""
|
|
27
|
-
description: """\
|
|
28
|
-
|
|
9
|
+
license: ["ISC"]
|
|
10
|
+
tags: ["unicode" "text" "segmentation" "org:erratique"]
|
|
11
|
+
depends: ["ocaml" {>= "4.03.0"}
|
|
12
|
+
"ocamlfind" {build}
|
|
13
|
+
"ocamlbuild" {build}
|
|
14
|
+
"topkg" {build & >= "1.0.3"}
|
|
15
|
+
"uucp" {>= "14.0.0" & < "15.0.0"}]
|
|
16
|
+
depopts: ["uutf"
|
|
17
|
+
"cmdliner"]
|
|
18
|
+
conflicts: ["uutf" {< "1.0.0"}]
|
|
19
|
+
build: [["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"
|
|
20
|
+
"--with-uutf" "%{uutf:installed}%"
|
|
21
|
+
"--with-cmdliner" "%{cmdliner:installed}%" ]]
|
|
22
|
+
url {
|
|
23
|
+
src: "https://erratique.ch/software/uuseg/releases/uuseg-14.0.0.tbz"
|
|
24
|
+
checksum: "sha512=3f089baf95f010663a0c2f060b2911395d9b396f478efb10fd979815f527c9e61e0a70b3192f2e921f59287bfde0da6e25109d4a1825554e2e4a50c0535e97aa"}
|
|
25
|
+
description: """
|
|
29
26
|
Uuseg is an OCaml library for segmenting Unicode text. It implements
|
|
30
27
|
the locale independent [Unicode text segmentation algorithms][1] to
|
|
31
28
|
detect grapheme cluster, word and sentence boundaries and the
|
|
@@ -42,8 +39,5 @@ OCaml UTF-X encoded strings. It is distributed under the ISC license.
|
|
|
42
39
|
|
|
43
40
|
[1]: http://www.unicode.org/reports/tr29/
|
|
44
41
|
[2]: http://www.unicode.org/reports/tr14/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
archive: "https://erratique.ch/software/uuseg/releases/uuseg-13.0.0.tbz"
|
|
48
|
-
checksum: "a07a97fff61da604614ea8da0547ef6a"
|
|
49
|
-
}
|
|
42
|
+
|
|
43
|
+
Homepage: http://erratique.ch/software/uuseg"""
|
|
@@ -6,7 +6,7 @@ bug-reports: "https://github.com/ocaml-community/yojson/issues"
|
|
|
6
6
|
dev-repo: "git+https://github.com/ocaml-community/yojson.git"
|
|
7
7
|
doc: "https://ocaml-community.github.io/yojson/"
|
|
8
8
|
build: [
|
|
9
|
-
["dune" "subst"] {
|
|
9
|
+
["dune" "subst"] {dev}
|
|
10
10
|
["dune" "build" "-p" name "-j" jobs]
|
|
11
11
|
]
|
|
12
12
|
run-test: [["dune" "runtest" "-p" name "-j" jobs]]
|
|
File without changes
|
|
File without changes
|
binaryen-archive/js/dune
CHANGED
binaryen-archive/package.json
CHANGED
|
@@ -1,33 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grain/binaryen.ml",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "OCaml bindings for Binaryen.",
|
|
5
5
|
"author": "Oscar Spencer <oscar@grain-lang.org>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"ocaml": ">= 4.
|
|
9
|
-
"@
|
|
10
|
-
"@opam/dune
|
|
11
|
-
"@opam/
|
|
12
|
-
"@opam/js_of_ocaml
|
|
8
|
+
"ocaml": ">= 4.12.0 < 4.13.0",
|
|
9
|
+
"@grain/libbinaryen": "^101.0.1",
|
|
10
|
+
"@opam/dune": "^2.9.1",
|
|
11
|
+
"@opam/dune-configurator": "^2.9.1",
|
|
12
|
+
"@opam/js_of_ocaml": "^3.10.0",
|
|
13
|
+
"@opam/js_of_ocaml-ppx": "^3.10.0"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
|
-
"@opam/js_of_ocaml-compiler": "^3.
|
|
16
|
-
"@opam/ocamlformat": "
|
|
17
|
-
"@opam/ocaml-lsp-server": "^1.
|
|
16
|
+
"@opam/js_of_ocaml-compiler": "^3.10.0",
|
|
17
|
+
"@opam/ocamlformat": "0.18.0",
|
|
18
|
+
"@opam/ocaml-lsp-server": "^1.8.2"
|
|
18
19
|
},
|
|
19
20
|
"esy": {
|
|
20
|
-
"build": "dune build -p binaryen"
|
|
21
|
-
"buildEnv": {
|
|
22
|
-
"DUNE_BUILD_DIR": "#{self.target_dir}",
|
|
23
|
-
"PATH": "#{os == 'windows' ? '/usr/x86_64-w64-mingw32/sys-root/mingw/bin' : '' : $PATH }"
|
|
24
|
-
},
|
|
25
|
-
"exportedEnv": {
|
|
26
|
-
"PATH": {
|
|
27
|
-
"val": "#{os == 'windows' ? '/usr/x86_64-w64-mingw32/sys-root/mingw/bin' : '' : $PATH }",
|
|
28
|
-
"scope": "global"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
21
|
+
"build": "dune build -p binaryen"
|
|
31
22
|
},
|
|
32
23
|
"scripts": {
|
|
33
24
|
"test": "esy b dune runtest",
|
|
@@ -36,6 +27,9 @@
|
|
|
36
27
|
"installConfig": {
|
|
37
28
|
"pnp": false
|
|
38
29
|
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
39
33
|
"keywords": [
|
|
40
34
|
"binaryen",
|
|
41
35
|
"ocaml"
|
binaryen-archive/src/dune
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
(name binaryen_native)
|
|
3
3
|
(public_name binaryen.native)
|
|
4
4
|
(implements binaryen)
|
|
5
|
+
(libraries libbinaryen.c)
|
|
5
6
|
(foreign_stubs
|
|
6
7
|
(language c)
|
|
7
8
|
(names binaryen_stubs_types binaryen_stubs_ops binaryen_stubs_literals
|
|
@@ -9,44 +10,5 @@
|
|
|
9
10
|
binaryen_stubs_imports binaryen_stubs_exports binaryen_stubs_globals
|
|
10
11
|
binaryen_stubs_tables binaryen_stubs_memory binaryen_stubs_features
|
|
11
12
|
binaryen_stubs_modules binaryen_stubs_settings ocaml_helpers)
|
|
12
|
-
(flags -O2 -Wall -Wextra))
|
|
13
|
-
(
|
|
14
|
-
(library_flags
|
|
15
|
-
(:include ./config/library_flags.sexp))
|
|
16
|
-
(c_library_flags -lstdc++ -lpthread))
|
|
17
|
-
|
|
18
|
-
(rule
|
|
19
|
-
(target binaryen-c.h)
|
|
20
|
-
(action
|
|
21
|
-
(copy ../vendor/binaryen-c.h binaryen-c.h)))
|
|
22
|
-
|
|
23
|
-
(rule
|
|
24
|
-
(target wasm-delegations.h)
|
|
25
|
-
(action
|
|
26
|
-
(copy ../vendor/wasm-delegations.h wasm-delegations.h)))
|
|
27
|
-
|
|
28
|
-
(rule
|
|
29
|
-
(target libbinaryen.a)
|
|
30
|
-
(action
|
|
31
|
-
(copy ../vendor/%{system}/libbinaryen.a libbinaryen.a)))
|
|
32
|
-
|
|
33
|
-
(rule
|
|
34
|
-
(target dllbinaryen.so)
|
|
35
|
-
(enabled_if
|
|
36
|
-
(= %{system} macosx))
|
|
37
|
-
(action
|
|
38
|
-
(copy ../vendor/%{system}/libbinaryen.dylib dllbinaryen.so)))
|
|
39
|
-
|
|
40
|
-
(rule
|
|
41
|
-
(target dllbinaryen.so)
|
|
42
|
-
(enabled_if
|
|
43
|
-
(= %{system} linux))
|
|
44
|
-
(action
|
|
45
|
-
(copy ../vendor/%{system}/libbinaryen.so dllbinaryen.so)))
|
|
46
|
-
|
|
47
|
-
(rule
|
|
48
|
-
(target dllbinaryen.dll)
|
|
49
|
-
(enabled_if
|
|
50
|
-
(= %{system} mingw64))
|
|
51
|
-
(action
|
|
52
|
-
(copy ../vendor/%{system}/libbinaryen.dll dllbinaryen.dll)))
|
|
13
|
+
(flags :standard -O2 -Wall -Wextra))
|
|
14
|
+
(c_library_flags :standard -lstdc++ -lpthread))
|
|
@@ -7,14 +7,6 @@
|
|
|
7
7
|
#include "ocaml_helpers.h"
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
CAMLprim value
|
|
11
|
-
caml_alloc_some(value v) {
|
|
12
|
-
CAMLparam1(v);
|
|
13
|
-
value some = caml_alloc_small(1, 0);
|
|
14
|
-
Store_field(some, 0, v);
|
|
15
|
-
CAMLreturn(some);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
10
|
CAMLprim value
|
|
19
11
|
array_of_list(value list) {
|
|
20
12
|
CAMLparam1(list);
|
|
@@ -40,9 +40,6 @@ static struct custom_operations binaryen_ops = {
|
|
|
40
40
|
|
|
41
41
|
#define Safe_String_val(v) ((char *)memcpy(malloc(caml_string_length(v) + 1), String_val(v), caml_string_length(v) + 1))
|
|
42
42
|
|
|
43
|
-
CAMLprim value
|
|
44
|
-
caml_alloc_some(value v);
|
|
45
|
-
|
|
46
43
|
CAMLprim value
|
|
47
44
|
array_of_list(value list);
|
|
48
45
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module C = Configurator.V1
|
|
2
|
+
|
|
3
|
+
let () =
|
|
4
|
+
C.main ~name:"ocamlopt_flags" (fun c ->
|
|
5
|
+
let default = [] in
|
|
6
|
+
|
|
7
|
+
let ocamlopt_flags =
|
|
8
|
+
match C.ocaml_config_var c "system" with
|
|
9
|
+
| Some "macosx" ->
|
|
10
|
+
(* These flags preserve the original C++ error behavior. Ref https://github.com/ocaml/ocaml/issues/10423 *)
|
|
11
|
+
[ "-cc"; "clang++" ]
|
|
12
|
+
| Some _ -> default
|
|
13
|
+
| None -> default
|
|
14
|
+
in
|
|
15
|
+
|
|
16
|
+
C.Flags.write_sexp "ocamlopt_flags.sexp" ocamlopt_flags)
|
binaryen-archive/test/dune
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
(name test)
|
|
5
5
|
(modules test)
|
|
6
6
|
(libraries binaryen)
|
|
7
|
+
(ocamlopt_flags
|
|
8
|
+
(:include ./config/ocamlopt_flags.sexp))
|
|
7
9
|
(action
|
|
8
10
|
(run %{test})))
|
|
9
11
|
|
|
@@ -20,6 +22,8 @@
|
|
|
20
22
|
(name test_native)
|
|
21
23
|
(modules test_native)
|
|
22
24
|
(libraries binaryen binaryen.native)
|
|
25
|
+
(ocamlopt_flags
|
|
26
|
+
(:include ./config/ocamlopt_flags.sexp))
|
|
23
27
|
(action
|
|
24
28
|
(run %{test})))
|
|
25
29
|
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "tim@gfxmonk.net"
|
|
3
|
-
homepage: "http://www.gnu.org/software/m4/m4.html"
|
|
4
|
-
bug-reports: "https://github.com/ocaml/opam-repository/issues"
|
|
5
|
-
authors: "GNU Project"
|
|
6
|
-
license: "GPL-3.0-only"
|
|
7
|
-
build: [["sh" "-exc" "echo | m4"]]
|
|
8
|
-
depexts: [
|
|
9
|
-
["m4"] {os-family = "debian"}
|
|
10
|
-
["m4"] {os-distribution = "fedora"}
|
|
11
|
-
["m4"] {os-distribution = "rhel"}
|
|
12
|
-
["m4"] {os-distribution = "centos"}
|
|
13
|
-
["m4"] {os-distribution = "alpine"}
|
|
14
|
-
["m4"] {os-distribution = "nixos"}
|
|
15
|
-
["m4"] {os-family = "suse"}
|
|
16
|
-
["m4"] {os-distribution = "ol"}
|
|
17
|
-
["m4"] {os-distribution = "arch"}
|
|
18
|
-
]
|
|
19
|
-
synopsis: "Virtual package relying on m4"
|
|
20
|
-
description:
|
|
21
|
-
"This package can only install if the m4 binary is installed on the system."
|
|
22
|
-
flags: conf
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "defree@gmail.com"
|
|
3
|
-
authors: "The Merlin team"
|
|
4
|
-
synopsis: "Reads config files for merlin"
|
|
5
|
-
homepage: "https://github.com/ocaml/merlin"
|
|
6
|
-
bug-reports: "https://github.com/ocaml/merlin/issues"
|
|
7
|
-
dev-repo: "git+https://github.com/ocaml/merlin.git"
|
|
8
|
-
build: [
|
|
9
|
-
["dune" "subst"] {pinned}
|
|
10
|
-
["dune" "build" "-p" name "-j" jobs]
|
|
11
|
-
]
|
|
12
|
-
depends: [
|
|
13
|
-
"ocaml" {>= "4.06.1" }
|
|
14
|
-
"dune" {>= "2.7.0"}
|
|
15
|
-
"yojson" {>= "1.6.0"}
|
|
16
|
-
"ocamlfind" {>= "1.6.0"}
|
|
17
|
-
"csexp" {>= "1.2.3"}
|
|
18
|
-
"result" {>= "1.5"}
|
|
19
|
-
]
|
|
20
|
-
description:
|
|
21
|
-
"Helper process: reads .merlin files and gives the normalized content to merlin"
|
|
22
|
-
x-commit-hash: "ab02f60994c81166820791b5f465f467d752b8dc"
|
|
23
|
-
url {
|
|
24
|
-
src:
|
|
25
|
-
"https://github.com/ocaml/merlin/releases/download/v4.1/dot-merlin-reader-v4.1.tbz"
|
|
26
|
-
checksum: [
|
|
27
|
-
"sha256=14a36d6fb8646a5df4530420a7861722f1a4ee04753717947305e3676031e7cd"
|
|
28
|
-
"sha512=65fd4ab08904c05651a7ef8971802ffaa428daa920765dbcf162e3c56e8047e4c9e4356daa45efccce7c73a586635c8f6cf8118fd3059789de9aff68579bd436"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "dev@ocsigen.org"
|
|
3
|
-
authors: "Ocsigen team"
|
|
4
|
-
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
|
|
5
|
-
homepage: "http://ocsigen.github.io/js_of_ocaml"
|
|
6
|
-
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
|
|
7
|
-
synopsis: "Compiler from OCaml bytecode to Javascript"
|
|
8
|
-
description: """
|
|
9
|
-
Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
|
|
10
|
-
It makes it possible to run pure OCaml programs in JavaScript
|
|
11
|
-
environment like browsers and Node.js
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
build: [["dune" "build" "-p" name "-j" jobs]]
|
|
15
|
-
|
|
16
|
-
depends: [
|
|
17
|
-
"ocaml" {>= "4.02.0"}
|
|
18
|
-
"dune" {>= "2.5"}
|
|
19
|
-
"ppx_expect" {with-test & >= "v0.12.0"}
|
|
20
|
-
"cmdliner"
|
|
21
|
-
"menhir"
|
|
22
|
-
"ppxlib" {>= "0.15.0"}
|
|
23
|
-
"yojson" # It's optional, but we want users to be able to use source-map without pain.
|
|
24
|
-
]
|
|
25
|
-
|
|
26
|
-
depopts: [ "ocamlfind" ]
|
|
27
|
-
|
|
28
|
-
conflicts: [
|
|
29
|
-
"ocamlfind" {< "1.5.1"}
|
|
30
|
-
"js_of_ocaml" {< "3.0"}
|
|
31
|
-
]
|
|
32
|
-
x-commit-hash: "c97f2543ff7bfa6c8fe683cca7beec884b38f918"
|
|
33
|
-
url {
|
|
34
|
-
src:
|
|
35
|
-
"https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.1/js_of_ocaml-3.9.1.tbz"
|
|
36
|
-
checksum: [
|
|
37
|
-
"sha256=a6de57f502676890191b966d2317a2bef7835786664c37f24e974aed66286545"
|
|
38
|
-
"sha512=f8b880bd3ff9fc1d98c5f65a1d3d9e919d16a20dd1c1c979e154642d1df7c3afc9d688e24fbbcd591974e1debb352d8f3fb2e0ffbb6df94c2d08ccd8d3f42727"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "dev@ocsigen.org"
|
|
3
|
-
authors: "Ocsigen team"
|
|
4
|
-
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
|
|
5
|
-
homepage: "http://ocsigen.github.io/js_of_ocaml"
|
|
6
|
-
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
|
|
7
|
-
synopsis: "Compiler from OCaml bytecode to Javascript"
|
|
8
|
-
description: """
|
|
9
|
-
Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
|
|
10
|
-
It makes it possible to run pure OCaml programs in JavaScript
|
|
11
|
-
environment like browsers and Node.js
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
build: [["dune" "build" "-p" name "-j" jobs]]
|
|
15
|
-
|
|
16
|
-
depends: [
|
|
17
|
-
"ocaml" {>= "4.02.0"}
|
|
18
|
-
"dune" {>= "2.5"}
|
|
19
|
-
"ppxlib" {>= "0.15.0"}
|
|
20
|
-
"js_of_ocaml" {= version}
|
|
21
|
-
]
|
|
22
|
-
x-commit-hash: "95bc95d31122bae5764022f878d8a6dd95ceb169"
|
|
23
|
-
url {
|
|
24
|
-
src:
|
|
25
|
-
"https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.0/js_of_ocaml-3.9.0.tbz"
|
|
26
|
-
checksum: [
|
|
27
|
-
"sha256=74d3b17b089af04cde29173c9e7a1154b9a784ba415aeef5026440aeb907cb54"
|
|
28
|
-
"sha512=affc91ed58d71e79752595345fcb2afe0d86378a73030ce64ef5624b9fef31925a2c2bb5e772fea017a508da292c351ad89b77e28361ff6f8ed345fecb78b31d"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "dev@ocsigen.org"
|
|
3
|
-
authors: "Ocsigen team"
|
|
4
|
-
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
|
|
5
|
-
homepage: "http://ocsigen.github.io/js_of_ocaml"
|
|
6
|
-
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
|
|
7
|
-
synopsis: "Compiler from OCaml bytecode to Javascript"
|
|
8
|
-
description: """
|
|
9
|
-
Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
|
|
10
|
-
It makes it possible to run pure OCaml programs in JavaScript
|
|
11
|
-
environment like browsers and Node.js
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
build: [["dune" "build" "-p" name "-j" jobs]]
|
|
15
|
-
|
|
16
|
-
depends: [
|
|
17
|
-
"ocaml" {>= "4.02.0"}
|
|
18
|
-
"dune" {>= "2.5"}
|
|
19
|
-
"ppxlib" {>= "0.15.0" }
|
|
20
|
-
"uchar"
|
|
21
|
-
"js_of_ocaml-compiler" {>= "3.9.0" & < "3.10.0"}
|
|
22
|
-
]
|
|
23
|
-
x-commit-hash: "95bc95d31122bae5764022f878d8a6dd95ceb169"
|
|
24
|
-
url {
|
|
25
|
-
src:
|
|
26
|
-
"https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.0/js_of_ocaml-3.9.0.tbz"
|
|
27
|
-
checksum: [
|
|
28
|
-
"sha256=74d3b17b089af04cde29173c9e7a1154b9a784ba415aeef5026440aeb907cb54"
|
|
29
|
-
"sha512=affc91ed58d71e79752595345fcb2afe0d86378a73030ce64ef5624b9fef31925a2c2bb5e772fea017a508da292c351ad89b77e28361ff6f8ed345fecb78b31d"
|
|
30
|
-
]
|
|
31
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "opensource@janestreet.com"
|
|
3
|
-
authors: ["Jane Street Group, LLC <opensource@janestreet.com>"]
|
|
4
|
-
homepage: "https://github.com/janestreet/ocaml-compiler-libs"
|
|
5
|
-
bug-reports: "https://github.com/janestreet/ocaml-compiler-libs/issues"
|
|
6
|
-
dev-repo: "git+https://github.com/janestreet/ocaml-compiler-libs.git"
|
|
7
|
-
license: "MIT"
|
|
8
|
-
build: [
|
|
9
|
-
["dune" "build" "-p" name "-j" jobs]
|
|
10
|
-
]
|
|
11
|
-
depends: [
|
|
12
|
-
"ocaml" {>= "4.04.1"}
|
|
13
|
-
"dune" {>= "1.5.1"}
|
|
14
|
-
]
|
|
15
|
-
synopsis: """OCaml compiler libraries repackaged"""
|
|
16
|
-
description: """
|
|
17
|
-
|
|
18
|
-
This packages exposes the OCaml compiler libraries repackages under
|
|
19
|
-
the toplevel names Ocaml_common, Ocaml_bytecomp, Ocaml_optcomp, ...
|
|
20
|
-
"""
|
|
21
|
-
x-commit-hash: "7f5d1d2931b96fb3ee6dd569a469b51f621a6dd4"
|
|
22
|
-
url {
|
|
23
|
-
src:
|
|
24
|
-
"https://github.com/janestreet/ocaml-compiler-libs/releases/download/v0.12.3/ocaml-compiler-libs-v0.12.3.tbz"
|
|
25
|
-
checksum: [
|
|
26
|
-
"sha256=a8403531439c14bbda2d504ef93610fd29a8e9520fc700f21889d893a513e3c9"
|
|
27
|
-
"sha512=0bb03b38e93bab3274a8ade38d017808110bc02f2181a594d8775c68fdd465733393f0451dbbf8860e6b50b56c45671d2182637c0840d1d6574803ec18673972"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "OCamlFormat Team <ocamlformat-team@fb.com>"
|
|
3
|
-
authors: "Josh Berdine <jjb@fb.com>"
|
|
4
|
-
homepage: "https://github.com/ocaml-ppx/ocamlformat"
|
|
5
|
-
bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
|
|
6
|
-
dev-repo: "git+https://github.com/ocaml-ppx/ocamlformat.git"
|
|
7
|
-
license: "MIT"
|
|
8
|
-
build: [
|
|
9
|
-
["ocaml" "tools/gen_version.mlt" "lib/Version.ml" version] {pinned}
|
|
10
|
-
["dune" "build" "-p" name "-j" jobs]
|
|
11
|
-
["dune" "runtest" "-p" name "-j" jobs] {with-test}
|
|
12
|
-
]
|
|
13
|
-
depends: [
|
|
14
|
-
"ocaml" {>= "4.06" & < "4.12"}
|
|
15
|
-
"alcotest" {with-test}
|
|
16
|
-
"base" {>= "v0.12.0" & < "v0.15"}
|
|
17
|
-
"base-unix"
|
|
18
|
-
"cmdliner"
|
|
19
|
-
"dune" {>= "2.2.0"}
|
|
20
|
-
"fix"
|
|
21
|
-
"fpath"
|
|
22
|
-
"menhir"
|
|
23
|
-
"ocp-indent" {with-test}
|
|
24
|
-
"odoc" {>= "1.4.2"}
|
|
25
|
-
"ppxlib" {>= "0.18.0" & < "0.22.0"}
|
|
26
|
-
"re"
|
|
27
|
-
"stdio" {< "v0.15"}
|
|
28
|
-
"uuseg" {>= "10.0.0"}
|
|
29
|
-
"uutf" {>= "1.0.1"}
|
|
30
|
-
]
|
|
31
|
-
synopsis: "Auto-formatter for OCaml code"
|
|
32
|
-
description: "OCamlFormat is a tool to automatically format OCaml code in a uniform style."
|
|
33
|
-
x-commit-hash: "7027acfed5b8e6e492801f297766b0c803a13086"
|
|
34
|
-
url {
|
|
35
|
-
src:
|
|
36
|
-
"https://github.com/ocaml-ppx/ocamlformat/releases/download/0.15.1/ocamlformat-0.15.1.tbz"
|
|
37
|
-
checksum: [
|
|
38
|
-
"sha256=2a61513d10889d975eaa721b577f37b454ecfec0e08257c027f3e9928882cef4"
|
|
39
|
-
"sha512=3e03e06f5aabf9c80d7edb0ad908f708a99e371538e25674401170fa5a9836e1c463a1b055b2901ce32854928897b969834d854b7a92c2e18a8d1044ba93e842"
|
|
40
|
-
]
|
|
41
|
-
}
|