@grain/binaryen.ml 0.12.1 → 0.14.1
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 +32 -0
- binaryen-archive/README.md +24 -0
- binaryen-archive/binaryen.opam +4 -4
- binaryen-archive/esy.lock/index.json +102 -100
- binaryen-archive/esy.lock/opam/{cmdliner.1.0.4 → cmdliner.1.1.0}/opam +17 -20
- binaryen-archive/esy.lock/opam/{ocaml-lsp-server.1.9.1 → ocaml-lsp-server.1.10.3}/opam +4 -4
- binaryen-archive/esy.lock/opam/{ocamlbuild.0.14.0 → ocamlbuild.0.14.1}/opam +18 -15
- binaryen-archive/esy.lock/opam/ocamlformat.0.20.1/opam +2 -0
- binaryen-archive/esy.lock/opam/{ppxlib.0.24.0 → ppxlib.0.25.0}/opam +4 -4
- binaryen-archive/esy.lock/opam/stdlib-shims.0.3.0/opam +1 -1
- binaryen-archive/esy.lock/opam/uchar.0.0.2/opam +1 -1
- binaryen-archive/esy.lock/opam/uutf.1.0.3/opam +36 -0
- binaryen-archive/esy.lock/overrides/opam__s__ocamlbuild_opam__c__0.14.1_opam_override/files/winpatch.patch +11 -0
- binaryen-archive/esy.lock/overrides/{opam__s__ocamlbuild_opam__c__0.14.0_opam_override → opam__s__ocamlbuild_opam__c__0.14.1_opam_override}/package.json +5 -3
- binaryen-archive/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.3_opam_override/files/findlib.patch +14 -0
- binaryen-archive/esy.lock/overrides/opam__s__uchar_opam__c__0.0.2_opam_override/files/winpatch.patch +11 -0
- binaryen-archive/esy.lock/overrides/opam__s__uchar_opam__c__0.0.2_opam_override/package.json +11 -0
- binaryen-archive/js/binaryen.es5.js +363 -5
- binaryen-archive/js/dune +1 -1
- binaryen-archive/js/export.ml +0 -3
- binaryen-archive/js/expression.ml +161 -0
- binaryen-archive/js/literal.ml +0 -1
- binaryen-archive/js/module.ml +6 -9
- binaryen-archive/js/op.ml +0 -223
- binaryen-archive/js/prelude.js +2 -11
- binaryen-archive/js/type.ml +0 -9
- binaryen-archive/package.json +4 -4
- binaryen-archive/src/binaryen_stubs_expressions.c +250 -0
- binaryen-archive/src/binaryen_stubs_features.c +24 -0
- binaryen-archive/src/element_segment.ml +0 -1
- binaryen-archive/src/export.ml +0 -2
- binaryen-archive/src/expression.ml +94 -63
- binaryen-archive/src/function.ml +0 -6
- binaryen-archive/src/global.ml +0 -2
- binaryen-archive/src/literal.ml +0 -3
- binaryen-archive/src/module.ml +17 -9
- binaryen-archive/src/settings.ml +0 -6
- binaryen-archive/src/type.ml +0 -1
- binaryen-archive/test/config/ocamlopt_flags.ml +8 -1
- binaryen-archive/test/test.expected +8 -0
- binaryen-archive/test/test.ml +44 -22
- binaryen-archive/virtual/element_segment.mli +0 -4
- binaryen-archive/virtual/export.mli +0 -15
- binaryen-archive/virtual/expression.mli +93 -115
- binaryen-archive/virtual/function.mli +0 -12
- binaryen-archive/virtual/global.mli +0 -8
- binaryen-archive/virtual/import.mli +0 -4
- binaryen-archive/virtual/literal.mli +0 -5
- binaryen-archive/virtual/module.mli +4 -29
- binaryen-archive/virtual/op.mli +0 -315
- binaryen-archive/virtual/settings.mli +0 -17
- binaryen-archive/virtual/table.mli +0 -3
- binaryen-archive/virtual/type.mli +0 -11
- binaryen-archive/esy.lock/opam/uutf.1.0.2/opam +0 -40
- binaryen-archive/esy.lock/overrides/opam__s__ocamlbuild_opam__c__0.14.0_opam_override/files/ocamlbuild-0.14.0.patch +0 -463
- binaryen-archive/js/postlude.js +0 -2
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
opam-version: "2.0"
|
|
2
|
+
synopsis:
|
|
3
|
+
"OCamlbuild is a build system with builtin rules to easily build most OCaml projects"
|
|
2
4
|
maintainer: "Gabriel Scherer <gabriel.scherer@gmail.com>"
|
|
3
5
|
authors: ["Nicolas Pouillard" "Berke Durak"]
|
|
6
|
+
license: "LGPL-2.0-or-later WITH OCaml-LGPL-linking-exception"
|
|
4
7
|
homepage: "https://github.com/ocaml/ocamlbuild/"
|
|
5
|
-
bug-reports: "https://github.com/ocaml/ocamlbuild/issues"
|
|
6
|
-
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
|
|
7
8
|
doc: "https://github.com/ocaml/ocamlbuild/blob/master/manual/manual.adoc"
|
|
8
|
-
|
|
9
|
+
bug-reports: "https://github.com/ocaml/ocamlbuild/issues"
|
|
10
|
+
depends: [
|
|
11
|
+
"ocaml" {>= "4.03"}
|
|
12
|
+
]
|
|
13
|
+
conflicts: [
|
|
14
|
+
"base-ocamlbuild"
|
|
15
|
+
"ocamlfind" {< "1.6.2"}
|
|
16
|
+
]
|
|
9
17
|
build: [
|
|
10
18
|
[
|
|
11
19
|
make
|
|
@@ -21,16 +29,11 @@ build: [
|
|
|
21
29
|
]
|
|
22
30
|
[make "check-if-preinstalled" "all" "opam-install"]
|
|
23
31
|
]
|
|
24
|
-
|
|
25
|
-
"base-ocamlbuild"
|
|
26
|
-
"ocamlfind" {< "1.6.2"}
|
|
27
|
-
]
|
|
28
|
-
synopsis:
|
|
29
|
-
"OCamlbuild is a build system with builtin rules to easily build most OCaml projects."
|
|
30
|
-
depends: [
|
|
31
|
-
"ocaml" {>= "4.03"}
|
|
32
|
-
]
|
|
32
|
+
dev-repo: "git+https://github.com/ocaml/ocamlbuild.git"
|
|
33
33
|
url {
|
|
34
|
-
src: "https://github.com/ocaml/ocamlbuild/archive/0.14.
|
|
35
|
-
checksum:
|
|
36
|
-
|
|
34
|
+
src: "https://github.com/ocaml/ocamlbuild/archive/refs/tags/0.14.1.tar.gz"
|
|
35
|
+
checksum: [
|
|
36
|
+
"md5=7027e507ed85f290923ad198f3d2cd1c"
|
|
37
|
+
"sha512=1f5b43215b1d3dc427b9c64e005add9d423ed4bca9686d52c55912df8955647cb2d7d86622d44b41b14c4f0d657b770c27967c541c868eeb7c78e3bd35b827ad"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
@@ -8,10 +8,12 @@ homepage: "https://github.com/ocaml-ppx/ocamlformat"
|
|
|
8
8
|
bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
|
|
9
9
|
depends: [
|
|
10
10
|
"dune" {>= "2.8"}
|
|
11
|
+
"dune" {with-test & < "3.0"}
|
|
11
12
|
"ocaml" {>= "4.08" & < "4.15"}
|
|
12
13
|
"alcotest" {with-test}
|
|
13
14
|
"base" {>= "v0.12.0" & < "v0.15"}
|
|
14
15
|
"cmdliner"
|
|
16
|
+
"cmdliner" {with-test & < "1.1.0"}
|
|
15
17
|
"dune-build-info"
|
|
16
18
|
"either"
|
|
17
19
|
"fix"
|
|
@@ -53,10 +53,10 @@ build: [
|
|
|
53
53
|
dev-repo: "git+https://github.com/ocaml-ppx/ppxlib.git"
|
|
54
54
|
url {
|
|
55
55
|
src:
|
|
56
|
-
"https://github.com/ocaml-ppx/ppxlib/releases/download/0.
|
|
56
|
+
"https://github.com/ocaml-ppx/ppxlib/releases/download/0.25.0/ppxlib-0.25.0.tbz"
|
|
57
57
|
checksum: [
|
|
58
|
-
"sha256=
|
|
59
|
-
"sha512=
|
|
58
|
+
"sha256=2d2f150e7715845dc578d254f705a67600be71c986b7e67e81befda612870bd5"
|
|
59
|
+
"sha512=464220e3d8c75503824b73393df0b8ad16019acf55b8ecef89f8d464cd6d054e470ce4866b244216c5f7b85a5e8abad908aad212a78b4a132f3092fa785da0de"
|
|
60
60
|
]
|
|
61
61
|
}
|
|
62
|
-
x-commit-hash: "
|
|
62
|
+
x-commit-hash: "2fde140076144150d01997d529d451bbcae439c4"
|
|
@@ -6,7 +6,7 @@ doc: "https://ocaml.github.io/stdlib-shims/"
|
|
|
6
6
|
dev-repo: "git+https://github.com/ocaml/stdlib-shims.git"
|
|
7
7
|
bug-reports: "https://github.com/ocaml/stdlib-shims/issues"
|
|
8
8
|
tags: ["stdlib" "compatibility" "org:ocaml"]
|
|
9
|
-
license: ["
|
|
9
|
+
license: ["LGPL-2.1-only WITH OCaml-LGPL-linking-exception"]
|
|
10
10
|
depends: [
|
|
11
11
|
"dune"
|
|
12
12
|
"ocaml" {>= "4.02.3"}
|
|
@@ -6,7 +6,7 @@ doc: "https://ocaml.github.io/uchar/"
|
|
|
6
6
|
dev-repo: "git+https://github.com/ocaml/uchar.git"
|
|
7
7
|
bug-reports: "https://github.com/ocaml/uchar/issues"
|
|
8
8
|
tags: [ "text" "character" "unicode" "compatibility" "org:ocaml.org" ]
|
|
9
|
-
license: "
|
|
9
|
+
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
|
|
10
10
|
depends: [
|
|
11
11
|
"ocaml" {>= "3.12.0"}
|
|
12
12
|
"ocamlbuild" {build}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
opam-version: "2.0"
|
|
2
|
+
synopsis: """Non-blocking streaming Unicode codec for OCaml"""
|
|
3
|
+
maintainer: ["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
|
|
4
|
+
authors: ["The uutf programmers"]
|
|
5
|
+
homepage: "https://erratique.ch/software/uutf"
|
|
6
|
+
doc: "https://erratique.ch/software/uutf/doc/"
|
|
7
|
+
dev-repo: "git+https://erratique.ch/repos/uutf.git"
|
|
8
|
+
bug-reports: "https://github.com/dbuenzli/uutf/issues"
|
|
9
|
+
license: ["ISC"]
|
|
10
|
+
tags: ["unicode" "text" "utf-8" "utf-16" "codec" "org:erratique"]
|
|
11
|
+
depends: ["ocaml" {>= "4.03.0"}
|
|
12
|
+
"ocamlfind" {build}
|
|
13
|
+
"ocamlbuild" {build}
|
|
14
|
+
"topkg" {build & >= "1.0.3"}]
|
|
15
|
+
depopts: ["cmdliner"]
|
|
16
|
+
conflicts: ["cmdliner" {< "0.9.8"}]
|
|
17
|
+
build: [["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"
|
|
18
|
+
"--with-cmdliner" "%{cmdliner:installed}%"]]
|
|
19
|
+
url {
|
|
20
|
+
src: "https://erratique.ch/software/uutf/releases/uutf-1.0.3.tbz"
|
|
21
|
+
checksum: "sha512=50cc4486021da46fb08156e9daec0d57b4ca469b07309c508d5a9a41e9dbcf1f32dec2ed7be027326544453dcaf9c2534919395fd826dc7768efc6cc4bfcc9f8"}
|
|
22
|
+
description: """
|
|
23
|
+
Uutf is a non-blocking streaming codec to decode and encode the UTF-8,
|
|
24
|
+
UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
|
|
25
|
+
work character by character without blocking on IO. Decoders perform
|
|
26
|
+
character position tracking and support newline normalization.
|
|
27
|
+
|
|
28
|
+
Functions are also provided to fold over the characters of UTF encoded
|
|
29
|
+
OCaml string values and to directly encode characters in OCaml
|
|
30
|
+
Buffer.t values. **Note** that since OCaml 4.14, that functionality
|
|
31
|
+
can be found in the Stdlib and you are encouraged to migrate to it.
|
|
32
|
+
|
|
33
|
+
Uutf has no dependency and is distributed under the ISC license.
|
|
34
|
+
|
|
35
|
+
Home page: http://erratique.ch/software/uutf
|
|
36
|
+
Contact: Daniel Bünzli `<daniel.buenzl i@erratique.ch>`"""
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
--- ./Makefile
|
|
2
|
+
+++ ./Makefile
|
|
3
|
+
@@ -271,7 +271,7 @@
|
|
4
|
+
echo ' "ocamlbuild.byte" {"ocamlbuild.byte"}' >> ocamlbuild.install
|
|
5
|
+
ifeq ($(OCAML_NATIVE), true)
|
|
6
|
+
echo ' "ocamlbuild.native" {"ocamlbuild.native"}' >> ocamlbuild.install
|
|
7
|
+
- echo ' "ocamlbuild.native" {"ocamlbuild"}' >> ocamlbuild.install
|
|
8
|
+
+ echo " \"ocamlbuild.native\" {\"ocamlbuild${EXE}\"}" >> ocamlbuild.install
|
|
9
|
+
else
|
|
10
|
+
echo ' "ocamlbuild.byte" {"ocamlbuild"}' >> ocamlbuild.install
|
|
11
|
+
endif
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[
|
|
4
4
|
"bash",
|
|
5
5
|
"-c",
|
|
6
|
-
"#{os == 'windows' ? 'patch -p1 <
|
|
6
|
+
"#{os == 'windows' ? 'patch -p1 < winpatch.patch' : 'true'}"
|
|
7
7
|
],
|
|
8
8
|
[
|
|
9
9
|
"make",
|
|
@@ -15,13 +15,15 @@
|
|
|
15
15
|
"OCAMLBUILD_LIBDIR=#{self.lib}",
|
|
16
16
|
"OCAMLBUILD_MANDIR=#{self.man}",
|
|
17
17
|
"OCAMLBUILD_NATIVE=true",
|
|
18
|
-
"OCAMLBUILD_NATIVE_TOOLS=true"
|
|
18
|
+
"OCAMLBUILD_NATIVE_TOOLS=true",
|
|
19
|
+
"EXE=#{os == 'windows' ? '.exe': ''}"
|
|
19
20
|
],
|
|
20
21
|
[
|
|
21
22
|
"make",
|
|
22
23
|
"check-if-preinstalled",
|
|
23
24
|
"all",
|
|
24
|
-
"
|
|
25
|
+
"EXE=#{os == 'windows' ? '.exe': ''}",
|
|
26
|
+
"opam-install"
|
|
25
27
|
]
|
|
26
28
|
]
|
|
27
29
|
}
|
|
@@ -469,3 +469,17 @@
|
|
|
469
469
|
sed -e 's;@AUTOLINK@;$(OCAML_AUTOLINK);g' \
|
|
470
470
|
-e 's;@SYSTEM@;$(SYSTEM);g' \
|
|
471
471
|
>findlib_config.ml
|
|
472
|
+
--- ./src/findlib/frontend.ml
|
|
473
|
+
+++ ./src/findlib/frontend.ml
|
|
474
|
+
@@ -281,10 +281,8 @@
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
let identify_dir d =
|
|
478
|
+
- if is_win then
|
|
479
|
+
- failwith "identify_dir"; (* not available *)
|
|
480
|
+
let s = Unix.stat d in
|
|
481
|
+
- (s.Unix.st_dev, s.Unix.st_ino)
|
|
482
|
+
+ (s.Unix.st_dev, s.Unix.st_ino)
|
|
483
|
+
;;
|
|
484
|
+
|
|
485
|
+
|
binaryen-archive/esy.lock/overrides/opam__s__uchar_opam__c__0.0.2_opam_override/files/winpatch.patch
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
--- ./pkg/topkg.ml
|
|
2
|
+
+++ ./pkg/topkg.ml
|
|
3
|
+
@@ -344,7 +344,7 @@
|
|
4
|
+
let build ccomp btool bdir pkg mvs =
|
|
5
|
+
let ext_to_string = Exts.ext_to_string ccomp in
|
|
6
|
+
let install, exec = build_strings btool bdir ext_to_string mvs in
|
|
7
|
+
- let e = Sys.command exec in
|
|
8
|
+
+ let e = Sys.command ("bash -c '" ^ exec ^ "'") in
|
|
9
|
+
if e <> 0 then exit e else
|
|
10
|
+
let install_file = pkg ^ ".install" in
|
|
11
|
+
try
|