@grain/binaryen.ml 0.15.0 → 0.16.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.
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.16.0](https://github.com/grain-lang/binaryen.ml/compare/v0.15.0...v0.16.0) (2022-05-11)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * Restrict OCaml < 4.14 temporarily
9
+ * Update libbinaryen to 106 ([#151](https://github.com/grain-lang/binaryen.ml/issues/151))
10
+ * Expression.Return.get_value can be null ([#149](https://github.com/grain-lang/binaryen.ml/issues/149))
11
+
12
+ ### Features
13
+
14
+ * Update libbinaryen to 106 ([#151](https://github.com/grain-lang/binaryen.ml/issues/151)) ([453b9de](https://github.com/grain-lang/binaryen.ml/commit/453b9dea8f0bda026b70f67d7c99311f9f6601e3))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * Expression.Return.get_value can be null ([#149](https://github.com/grain-lang/binaryen.ml/issues/149)) ([559341d](https://github.com/grain-lang/binaryen.ml/commit/559341d13a7ba5abb8521f6d0d982d4f25b86ce0))
20
+
21
+
22
+ ### Miscellaneous Chores
23
+
24
+ * Restrict OCaml < 4.14 temporarily ([453b9de](https://github.com/grain-lang/binaryen.ml/commit/453b9dea8f0bda026b70f67d7c99311f9f6601e3))
25
+
3
26
  ## [0.15.0](https://github.com/grain-lang/binaryen.ml/compare/v0.14.1...v0.15.0) (2022-03-16)
4
27
 
5
28
 
@@ -42,12 +42,6 @@ This project aims to provide full feature parity with the [Binaryen C API](https
42
42
 
43
43
  None of these are particularly challenging to create bindings for—they just haven't been written yet. If you need anything that's missing, feel free to open a PR.
44
44
 
45
- ## Python dependency
46
-
47
- When using this package with `esy`, you'll need to ensure that a `python` executable exists in one of these locations: `/usr/local/bin/python`, `/usr/bin/python`, `/bin/python`, `/usr/sbin/python`, or `/sbin/python`. Esy will only look for python in those locations, and it is not provided for you in the sandbox.
48
-
49
- **Note:** This implicit dependency will be removed in a future version.
50
-
51
45
  ## MacOS C++ Compiler
52
46
 
53
47
  When including this library in your `dune` MacOS executables, you'll need to specify `-cc clang++` in your `(ocamlopt_flags)` stanza. This is required because Binaryen will throw errors for itself to catch and using `clang++` is the only way to handle them correctly. You can find more info on this [ocaml issue](https://github.com/ocaml/ocaml/issues/10423).
@@ -66,30 +60,6 @@ Your stanza could look something like this:
66
60
 
67
61
  These flags likely won't work on other operating systems, so you'll probably need to use `dune-configurator` to vary the flags per platform. You can see an example of this in our [tests/](./tests/dune).
68
62
 
69
- ## MacOS DWARF & Compact unwind
70
-
71
- When including this library in your `dune` MacOS executables, you might want to specify `-cclib -Wl,-keep_dwarf_unwind -cclib -Wl,-no_compact_unwind` in your `(ocamlopt_flags)` stanza. If you don't include them, you'll probably see warnings like:
72
-
73
- ```log
74
- ld: warning: could not create compact unwind for _caml_start_program: dwarf uses DW_CFA_same_value
75
- ld: warning: could not create compact unwind for _caml_raise_exn: stack subq instruction is too different from dwarf stack size
76
- ld: warning: could not create compact unwind for _caml_raise_exception: stack subq instruction is too different from dwarf stack size
77
- ```
78
-
79
- Your stanza could look something like this:
80
-
81
- ```diff
82
- (executable
83
- (name example)
84
- (public_name example)
85
- (package example)
86
- + (ocamlopt_flags -cclib -Wl,-keep_dwarf_unwind -cclib -Wl,-no_compact_unwind)
87
- (modules example)
88
- (libraries binaryen))
89
- ```
90
-
91
- These flags likely won't work on other operating systems, so you'll probably need to use `dune-configurator` to vary the flags per platform. You can see an example of this in our [tests/](./tests/dune).
92
-
93
63
  ## Static Linking
94
64
 
95
65
  If you are planning to create portable binaries for Windows, it will try to find Cygwin/MinGW locations in your `PATH`. To avoid this, you probably want to add this to your `(executable)` stanzas:
@@ -1,5 +1,5 @@
1
1
  opam-version: "2.0"
2
- version: "0.15.0"
2
+ version: "0.16.0"
3
3
  synopsis: "OCaml bindings for Binaryen"
4
4
  maintainer: "oscar@grain-lang.org"
5
5
  author: "Oscar Spencer"
@@ -12,9 +12,9 @@ build: [
12
12
  [ "dune" "build" "-p" name "-j" jobs ]
13
13
  ]
14
14
  depends: [
15
- "ocaml" {>= "4.12"}
15
+ "ocaml" {>= "4.12.0" < "4.14.0"}
16
16
  "dune" {>= "2.9.1" < "3.0.0"}
17
17
  "dune-configurator" {>= "2.9.1" < "3.0.0"}
18
18
  "js_of_ocaml-compiler" {>= "3.10.0" < "4.0.0"}
19
- "libbinaryen" {>= "105.1.0" < "106.0.0"}
19
+ "libbinaryen" {>= "106.0.0" < "107.0.0"}
20
20
  ]
@@ -1,5 +1,5 @@
1
1
  {
2
- "checksum": "3afbecb7a1e1a32cb100ffcb7796a67a",
2
+ "checksum": "fcb59ca5a849b1079497c0037155a8b8",
3
3
  "root": "@grain/binaryen.ml@link-dev:./package.json",
4
4
  "node": {
5
5
  "ocaml@4.13.1000@d41d8cd9": {
@@ -34,13 +34,13 @@
34
34
  },
35
35
  "overrides": [],
36
36
  "dependencies": [
37
- "ocaml@4.13.1000@d41d8cd9", "@opam/easy-format@opam:1.3.2@1ea9f987",
37
+ "ocaml@4.13.1000@d41d8cd9", "@opam/easy-format@opam:1.3.3@5d74d95b",
38
38
  "@opam/dune@opam:2.9.3@f57a6d69", "@opam/cppo@opam:1.6.8@7e48217d",
39
39
  "@opam/biniou@opam:1.2.1@420bda02",
40
40
  "@esy-ocaml/substs@0.0.1@d41d8cd9"
41
41
  ],
42
42
  "devDependencies": [
43
- "ocaml@4.13.1000@d41d8cd9", "@opam/easy-format@opam:1.3.2@1ea9f987",
43
+ "ocaml@4.13.1000@d41d8cd9", "@opam/easy-format@opam:1.3.3@5d74d95b",
44
44
  "@opam/dune@opam:2.9.3@f57a6d69", "@opam/biniou@opam:1.2.1@420bda02"
45
45
  ]
46
46
  },
@@ -65,7 +65,7 @@
65
65
  "ocaml@4.13.1000@d41d8cd9", "@opam/topkg@opam:1.0.5@0aa59f51",
66
66
  "@opam/ocamlfind@opam:1.9.3@781b30f3",
67
67
  "@opam/ocamlbuild@opam:0.14.1@ead10f40",
68
- "@opam/cmdliner@opam:1.1.0@643a0e00",
68
+ "@opam/cmdliner@opam:1.1.1@03763729",
69
69
  "@esy-ocaml/substs@0.0.1@d41d8cd9"
70
70
  ],
71
71
  "devDependencies": [ "ocaml@4.13.1000@d41d8cd9" ]
@@ -92,7 +92,7 @@
92
92
  "@opam/uucp@opam:14.0.0@8715110e", "@opam/topkg@opam:1.0.5@0aa59f51",
93
93
  "@opam/ocamlfind@opam:1.9.3@781b30f3",
94
94
  "@opam/ocamlbuild@opam:0.14.1@ead10f40",
95
- "@opam/cmdliner@opam:1.1.0@643a0e00",
95
+ "@opam/cmdliner@opam:1.1.1@03763729",
96
96
  "@esy-ocaml/substs@0.0.1@d41d8cd9"
97
97
  ],
98
98
  "devDependencies": [
@@ -121,7 +121,7 @@
121
121
  "@opam/topkg@opam:1.0.5@0aa59f51",
122
122
  "@opam/ocamlfind@opam:1.9.3@781b30f3",
123
123
  "@opam/ocamlbuild@opam:0.14.1@ead10f40",
124
- "@opam/cmdliner@opam:1.1.0@643a0e00",
124
+ "@opam/cmdliner@opam:1.1.1@03763729",
125
125
  "@esy-ocaml/substs@0.0.1@d41d8cd9"
126
126
  ],
127
127
  "devDependencies": [ "ocaml@4.13.1000@d41d8cd9" ]
@@ -204,20 +204,20 @@
204
204
  "@opam/base@opam:v0.14.3@b3ddb868"
205
205
  ]
206
206
  },
207
- "@opam/spawn@opam:v0.15.0@4a27a4cb": {
208
- "id": "@opam/spawn@opam:v0.15.0@4a27a4cb",
207
+ "@opam/spawn@opam:v0.15.1@85e9d6f1": {
208
+ "id": "@opam/spawn@opam:v0.15.1@85e9d6f1",
209
209
  "name": "@opam/spawn",
210
- "version": "opam:v0.15.0",
210
+ "version": "opam:v0.15.1",
211
211
  "source": {
212
212
  "type": "install",
213
213
  "source": [
214
- "archive:https://opam.ocaml.org/cache/sha256/31/310fb2a50ac7f64c738182cbabd9d27c1aeae1a08107fe14da8d35a87cbb57c7#sha256:310fb2a50ac7f64c738182cbabd9d27c1aeae1a08107fe14da8d35a87cbb57c7",
215
- "archive:https://github.com/janestreet/spawn/archive/v0.15.0.tar.gz#sha256:310fb2a50ac7f64c738182cbabd9d27c1aeae1a08107fe14da8d35a87cbb57c7"
214
+ "archive:https://opam.ocaml.org/cache/sha256/9a/9afdee314fab6c3fcd689ab6eb5608d6b78078e6dede3953a47debde06c19d50#sha256:9afdee314fab6c3fcd689ab6eb5608d6b78078e6dede3953a47debde06c19d50",
215
+ "archive:https://github.com/janestreet/spawn/archive/v0.15.1.tar.gz#sha256:9afdee314fab6c3fcd689ab6eb5608d6b78078e6dede3953a47debde06c19d50"
216
216
  ],
217
217
  "opam": {
218
218
  "name": "spawn",
219
- "version": "v0.15.0",
220
- "path": "esy.lock/opam/spawn.v0.15.0"
219
+ "version": "v0.15.1",
220
+ "path": "esy.lock/opam/spawn.v0.15.1"
221
221
  }
222
222
  },
223
223
  "overrides": [],
@@ -298,20 +298,20 @@
298
298
  "ocaml@4.13.1000@d41d8cd9", "@opam/dune@opam:2.9.3@f57a6d69"
299
299
  ]
300
300
  },
301
- "@opam/re@opam:1.10.3@0585c65d": {
302
- "id": "@opam/re@opam:1.10.3@0585c65d",
301
+ "@opam/re@opam:1.10.4@c4910ba6": {
302
+ "id": "@opam/re@opam:1.10.4@c4910ba6",
303
303
  "name": "@opam/re",
304
- "version": "opam:1.10.3",
304
+ "version": "opam:1.10.4",
305
305
  "source": {
306
306
  "type": "install",
307
307
  "source": [
308
- "archive:https://opam.ocaml.org/cache/sha256/84/846546967f3fe31765935dd40a6460a9424337ecce7b12727fcba49480790ebb#sha256:846546967f3fe31765935dd40a6460a9424337ecce7b12727fcba49480790ebb",
309
- "archive:https://github.com/ocaml/ocaml-re/releases/download/1.10.3/re-1.10.3.tbz#sha256:846546967f3fe31765935dd40a6460a9424337ecce7b12727fcba49480790ebb"
308
+ "archive:https://opam.ocaml.org/cache/sha256/83/83eb3e4300aa9b1dc7820749010f4362ea83524742130524d78c20ce99ca747c#sha256:83eb3e4300aa9b1dc7820749010f4362ea83524742130524d78c20ce99ca747c",
309
+ "archive:https://github.com/ocaml/ocaml-re/releases/download/1.10.4/re-1.10.4.tbz#sha256:83eb3e4300aa9b1dc7820749010f4362ea83524742130524d78c20ce99ca747c"
310
310
  ],
311
311
  "opam": {
312
312
  "name": "re",
313
- "version": "1.10.3",
314
- "path": "esy.lock/opam/re.1.10.3"
313
+ "version": "1.10.4",
314
+ "path": "esy.lock/opam/re.1.10.4"
315
315
  }
316
316
  },
317
317
  "overrides": [],
@@ -324,20 +324,20 @@
324
324
  "@opam/dune@opam:2.9.3@f57a6d69"
325
325
  ]
326
326
  },
327
- "@opam/ppxlib@opam:0.25.0@8553d2e8": {
328
- "id": "@opam/ppxlib@opam:0.25.0@8553d2e8",
327
+ "@opam/ppxlib@opam:0.26.0@cc81525b": {
328
+ "id": "@opam/ppxlib@opam:0.26.0@cc81525b",
329
329
  "name": "@opam/ppxlib",
330
- "version": "opam:0.25.0",
330
+ "version": "opam:0.26.0",
331
331
  "source": {
332
332
  "type": "install",
333
333
  "source": [
334
- "archive:https://opam.ocaml.org/cache/sha256/2d/2d2f150e7715845dc578d254f705a67600be71c986b7e67e81befda612870bd5#sha256:2d2f150e7715845dc578d254f705a67600be71c986b7e67e81befda612870bd5",
335
- "archive:https://github.com/ocaml-ppx/ppxlib/releases/download/0.25.0/ppxlib-0.25.0.tbz#sha256:2d2f150e7715845dc578d254f705a67600be71c986b7e67e81befda612870bd5"
334
+ "archive:https://opam.ocaml.org/cache/sha256/63/63117b67ea5863935455fe921f88fe333c0530f0483f730313303a93af817efd#sha256:63117b67ea5863935455fe921f88fe333c0530f0483f730313303a93af817efd",
335
+ "archive:https://github.com/ocaml-ppx/ppxlib/releases/download/0.26.0/ppxlib-0.26.0.tbz#sha256:63117b67ea5863935455fe921f88fe333c0530f0483f730313303a93af817efd"
336
336
  ],
337
337
  "opam": {
338
338
  "name": "ppxlib",
339
- "version": "0.25.0",
340
- "path": "esy.lock/opam/ppxlib.0.25.0"
339
+ "version": "0.26.0",
340
+ "path": "esy.lock/opam/ppxlib.0.26.0"
341
341
  }
342
342
  },
343
343
  "overrides": [],
@@ -356,20 +356,20 @@
356
356
  "@opam/dune@opam:2.9.3@f57a6d69"
357
357
  ]
358
358
  },
359
- "@opam/ppx_yojson_conv_lib@opam:v0.14.0@605a6997": {
360
- "id": "@opam/ppx_yojson_conv_lib@opam:v0.14.0@605a6997",
359
+ "@opam/ppx_yojson_conv_lib@opam:v0.15.0@773058a7": {
360
+ "id": "@opam/ppx_yojson_conv_lib@opam:v0.15.0@773058a7",
361
361
  "name": "@opam/ppx_yojson_conv_lib",
362
- "version": "opam:v0.14.0",
362
+ "version": "opam:v0.15.0",
363
363
  "source": {
364
364
  "type": "install",
365
365
  "source": [
366
- "archive:https://opam.ocaml.org/cache/md5/e2/e23c5593a7211ad4fb09e26e9a74698a#md5:e23c5593a7211ad4fb09e26e9a74698a",
367
- "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_yojson_conv_lib-v0.14.0.tar.gz#md5:e23c5593a7211ad4fb09e26e9a74698a"
366
+ "archive:https://opam.ocaml.org/cache/sha256/f9/f9d2c5eff4566ec1f1f379b186ed22c8ddd6be0909a160bc5a9ac7abc6a6b684#sha256:f9d2c5eff4566ec1f1f379b186ed22c8ddd6be0909a160bc5a9ac7abc6a6b684",
367
+ "archive:https://ocaml.janestreet.com/ocaml-core/v0.15/files/ppx_yojson_conv_lib-v0.15.0.tar.gz#sha256:f9d2c5eff4566ec1f1f379b186ed22c8ddd6be0909a160bc5a9ac7abc6a6b684"
368
368
  ],
369
369
  "opam": {
370
370
  "name": "ppx_yojson_conv_lib",
371
- "version": "v0.14.0",
372
- "path": "esy.lock/opam/ppx_yojson_conv_lib.v0.14.0"
371
+ "version": "v0.15.0",
372
+ "path": "esy.lock/opam/ppx_yojson_conv_lib.v0.15.0"
373
373
  }
374
374
  },
375
375
  "overrides": [],
@@ -480,14 +480,14 @@
480
480
  "dependencies": [
481
481
  "ocaml@4.13.1000@d41d8cd9", "@opam/ocamlfind@opam:1.9.3@781b30f3",
482
482
  "@opam/dune@opam:2.9.3@f57a6d69",
483
- "@opam/cmdliner@opam:1.1.0@643a0e00",
483
+ "@opam/cmdliner@opam:1.1.1@03763729",
484
484
  "@opam/base-bytes@opam:base@19d0c2ff",
485
485
  "@esy-ocaml/substs@0.0.1@d41d8cd9"
486
486
  ],
487
487
  "devDependencies": [
488
488
  "ocaml@4.13.1000@d41d8cd9", "@opam/ocamlfind@opam:1.9.3@781b30f3",
489
489
  "@opam/dune@opam:2.9.3@f57a6d69",
490
- "@opam/cmdliner@opam:1.1.0@643a0e00",
490
+ "@opam/cmdliner@opam:1.1.1@03763729",
491
491
  "@opam/base-bytes@opam:base@19d0c2ff"
492
492
  ]
493
493
  },
@@ -538,7 +538,7 @@
538
538
  "dependencies": [
539
539
  "ocaml@4.13.1000@d41d8cd9", "@opam/uutf@opam:1.0.3@47c95a18",
540
540
  "@opam/uuseg@opam:14.0.0@7d21466b",
541
- "@opam/stdio@opam:v0.14.0@a5affb43", "@opam/re@opam:1.10.3@0585c65d",
541
+ "@opam/stdio@opam:v0.14.0@a5affb43", "@opam/re@opam:1.10.4@c4910ba6",
542
542
  "@opam/odoc-parser@opam:1.0.0@b1029bdf",
543
543
  "@opam/ocp-indent@opam:1.7.0@2da3c6e5",
544
544
  "@opam/ocaml-version@opam:3.4.0@b6cd49e1",
@@ -550,14 +550,14 @@
550
550
  "@opam/either@opam:1.0.0@be5a1416",
551
551
  "@opam/dune-build-info@opam:2.9.3@ae518c8c",
552
552
  "@opam/dune@opam:2.9.3@f57a6d69",
553
- "@opam/cmdliner@opam:1.1.0@643a0e00",
553
+ "@opam/cmdliner@opam:1.1.1@03763729",
554
554
  "@opam/base@opam:v0.14.3@b3ddb868",
555
555
  "@esy-ocaml/substs@0.0.1@d41d8cd9"
556
556
  ],
557
557
  "devDependencies": [
558
558
  "ocaml@4.13.1000@d41d8cd9", "@opam/uutf@opam:1.0.3@47c95a18",
559
559
  "@opam/uuseg@opam:14.0.0@7d21466b",
560
- "@opam/stdio@opam:v0.14.0@a5affb43", "@opam/re@opam:1.10.3@0585c65d",
560
+ "@opam/stdio@opam:v0.14.0@a5affb43", "@opam/re@opam:1.10.4@c4910ba6",
561
561
  "@opam/odoc-parser@opam:1.0.0@b1029bdf",
562
562
  "@opam/ocp-indent@opam:1.7.0@2da3c6e5",
563
563
  "@opam/ocaml-version@opam:3.4.0@b6cd49e1",
@@ -569,7 +569,7 @@
569
569
  "@opam/either@opam:1.0.0@be5a1416",
570
570
  "@opam/dune-build-info@opam:2.9.3@ae518c8c",
571
571
  "@opam/dune@opam:2.9.3@f57a6d69",
572
- "@opam/cmdliner@opam:1.1.0@643a0e00",
572
+ "@opam/cmdliner@opam:1.1.1@03763729",
573
573
  "@opam/base@opam:v0.14.3@b3ddb868"
574
574
  ]
575
575
  },
@@ -671,9 +671,9 @@
671
671
  "overrides": [],
672
672
  "dependencies": [
673
673
  "ocaml@4.13.1000@d41d8cd9", "@opam/yojson@opam:1.7.0@69d87312",
674
- "@opam/spawn@opam:v0.15.0@4a27a4cb",
675
- "@opam/result@opam:1.5@1c6a6533", "@opam/re@opam:1.10.3@0585c65d",
676
- "@opam/ppx_yojson_conv_lib@opam:v0.14.0@605a6997",
674
+ "@opam/spawn@opam:v0.15.1@85e9d6f1",
675
+ "@opam/result@opam:1.5@1c6a6533", "@opam/re@opam:1.10.4@c4910ba6",
676
+ "@opam/ppx_yojson_conv_lib@opam:v0.15.0@773058a7",
677
677
  "@opam/pp@opam:1.1.2@89ad03b5",
678
678
  "@opam/ocamlformat-rpc-lib@opam:0.19.0@125cf11d",
679
679
  "@opam/dune-build-info@opam:2.9.3@ae518c8c",
@@ -682,9 +682,9 @@
682
682
  ],
683
683
  "devDependencies": [
684
684
  "ocaml@4.13.1000@d41d8cd9", "@opam/yojson@opam:1.7.0@69d87312",
685
- "@opam/spawn@opam:v0.15.0@4a27a4cb",
686
- "@opam/result@opam:1.5@1c6a6533", "@opam/re@opam:1.10.3@0585c65d",
687
- "@opam/ppx_yojson_conv_lib@opam:v0.14.0@605a6997",
685
+ "@opam/spawn@opam:v0.15.1@85e9d6f1",
686
+ "@opam/result@opam:1.5@1c6a6533", "@opam/re@opam:1.10.4@c4910ba6",
687
+ "@opam/ppx_yojson_conv_lib@opam:v0.15.0@773058a7",
688
688
  "@opam/pp@opam:1.1.2@89ad03b5",
689
689
  "@opam/ocamlformat-rpc-lib@opam:0.19.0@125cf11d",
690
690
  "@opam/dune-build-info@opam:2.9.3@ae518c8c",
@@ -813,23 +813,23 @@
813
813
  "overrides": [],
814
814
  "dependencies": [
815
815
  "ocaml@4.13.1000@d41d8cd9", "@opam/yojson@opam:1.7.0@69d87312",
816
- "@opam/ppxlib@opam:0.25.0@8553d2e8",
816
+ "@opam/ppxlib@opam:0.26.0@cc81525b",
817
817
  "@opam/ocamlfind@opam:1.9.3@781b30f3",
818
818
  "@opam/menhirSdk@opam:20211128@e9fd3a0e",
819
819
  "@opam/menhirLib@opam:20211128@e86421ad",
820
820
  "@opam/menhir@opam:20211128@29de3b7a",
821
821
  "@opam/dune@opam:2.9.3@f57a6d69",
822
- "@opam/cmdliner@opam:1.1.0@643a0e00",
822
+ "@opam/cmdliner@opam:1.1.1@03763729",
823
823
  "@esy-ocaml/substs@0.0.1@d41d8cd9"
824
824
  ],
825
825
  "devDependencies": [
826
826
  "ocaml@4.13.1000@d41d8cd9", "@opam/yojson@opam:1.7.0@69d87312",
827
- "@opam/ppxlib@opam:0.25.0@8553d2e8",
827
+ "@opam/ppxlib@opam:0.26.0@cc81525b",
828
828
  "@opam/menhirSdk@opam:20211128@e9fd3a0e",
829
829
  "@opam/menhirLib@opam:20211128@e86421ad",
830
830
  "@opam/menhir@opam:20211128@29de3b7a",
831
831
  "@opam/dune@opam:2.9.3@f57a6d69",
832
- "@opam/cmdliner@opam:1.1.0@643a0e00"
832
+ "@opam/cmdliner@opam:1.1.1@03763729"
833
833
  ]
834
834
  },
835
835
  "@opam/fpath@opam:0.7.3@674d8125": {
@@ -907,23 +907,28 @@
907
907
  ],
908
908
  "devDependencies": [ "@opam/dune@opam:2.9.3@f57a6d69" ]
909
909
  },
910
- "@opam/easy-format@opam:1.3.2@1ea9f987": {
911
- "id": "@opam/easy-format@opam:1.3.2@1ea9f987",
910
+ "@opam/easy-format@opam:1.3.3@5d74d95b": {
911
+ "id": "@opam/easy-format@opam:1.3.3@5d74d95b",
912
912
  "name": "@opam/easy-format",
913
- "version": "opam:1.3.2",
913
+ "version": "opam:1.3.3",
914
914
  "source": {
915
915
  "type": "install",
916
916
  "source": [
917
- "archive:https://opam.ocaml.org/cache/sha256/34/3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926#sha256:3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926",
918
- "archive:https://github.com/mjambon/easy-format/releases/download/1.3.2/easy-format-1.3.2.tbz#sha256:3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926"
917
+ "archive:https://opam.ocaml.org/cache/sha256/ea/eafccae911c26ca23e4ddacee3eaa54654d20f973b8680f84b708cef43adc416#sha256:eafccae911c26ca23e4ddacee3eaa54654d20f973b8680f84b708cef43adc416",
918
+ "archive:https://github.com/mjambon/easy-format/releases/download/1.3.3/easy-format-1.3.3.tbz#sha256:eafccae911c26ca23e4ddacee3eaa54654d20f973b8680f84b708cef43adc416"
919
919
  ],
920
920
  "opam": {
921
921
  "name": "easy-format",
922
- "version": "1.3.2",
923
- "path": "esy.lock/opam/easy-format.1.3.2"
922
+ "version": "1.3.3",
923
+ "path": "esy.lock/opam/easy-format.1.3.3"
924
924
  }
925
925
  },
926
- "overrides": [],
926
+ "overrides": [
927
+ {
928
+ "opamoverride":
929
+ "esy.lock/overrides/opam__s__easy_format_opam__c__1.3.3_opam_override"
930
+ }
931
+ ],
927
932
  "dependencies": [
928
933
  "ocaml@4.13.1000@d41d8cd9", "@opam/dune@opam:2.9.3@f57a6d69",
929
934
  "@esy-ocaml/substs@0.0.1@d41d8cd9"
@@ -1076,20 +1081,20 @@
1076
1081
  "dependencies": [],
1077
1082
  "devDependencies": []
1078
1083
  },
1079
- "@opam/cmdliner@opam:1.1.0@643a0e00": {
1080
- "id": "@opam/cmdliner@opam:1.1.0@643a0e00",
1084
+ "@opam/cmdliner@opam:1.1.1@03763729": {
1085
+ "id": "@opam/cmdliner@opam:1.1.1@03763729",
1081
1086
  "name": "@opam/cmdliner",
1082
- "version": "opam:1.1.0",
1087
+ "version": "opam:1.1.1",
1083
1088
  "source": {
1084
1089
  "type": "install",
1085
1090
  "source": [
1086
- "archive:https://opam.ocaml.org/cache/sha512/e2/e2fad706829e7b8b50d1a510b59b87e44294252d8e8bdd9d6cb07f435d7c1c123f82353eedf29e9a4b7768da485516b89b62bf956234e90d7eae1bbaae2c9263#sha512:e2fad706829e7b8b50d1a510b59b87e44294252d8e8bdd9d6cb07f435d7c1c123f82353eedf29e9a4b7768da485516b89b62bf956234e90d7eae1bbaae2c9263",
1087
- "archive:https://erratique.ch/software/cmdliner/releases/cmdliner-1.1.0.tbz#sha512:e2fad706829e7b8b50d1a510b59b87e44294252d8e8bdd9d6cb07f435d7c1c123f82353eedf29e9a4b7768da485516b89b62bf956234e90d7eae1bbaae2c9263"
1091
+ "archive:https://opam.ocaml.org/cache/sha512/54/5478ad833da254b5587b3746e3a8493e66e867a081ac0f653a901cc8a7d944f66e4387592215ce25d939be76f281c4785702f54d4a74b1700bc8838a62255c9e#sha512:5478ad833da254b5587b3746e3a8493e66e867a081ac0f653a901cc8a7d944f66e4387592215ce25d939be76f281c4785702f54d4a74b1700bc8838a62255c9e",
1092
+ "archive:https://erratique.ch/software/cmdliner/releases/cmdliner-1.1.1.tbz#sha512:5478ad833da254b5587b3746e3a8493e66e867a081ac0f653a901cc8a7d944f66e4387592215ce25d939be76f281c4785702f54d4a74b1700bc8838a62255c9e"
1088
1093
  ],
1089
1094
  "opam": {
1090
1095
  "name": "cmdliner",
1091
- "version": "1.1.0",
1092
- "path": "esy.lock/opam/cmdliner.1.1.0"
1096
+ "version": "1.1.1",
1097
+ "path": "esy.lock/opam/cmdliner.1.1.1"
1093
1098
  }
1094
1099
  },
1095
1100
  "overrides": [],
@@ -1116,11 +1121,11 @@
1116
1121
  },
1117
1122
  "overrides": [],
1118
1123
  "dependencies": [
1119
- "ocaml@4.13.1000@d41d8cd9", "@opam/easy-format@opam:1.3.2@1ea9f987",
1124
+ "ocaml@4.13.1000@d41d8cd9", "@opam/easy-format@opam:1.3.3@5d74d95b",
1120
1125
  "@opam/dune@opam:2.9.3@f57a6d69", "@esy-ocaml/substs@0.0.1@d41d8cd9"
1121
1126
  ],
1122
1127
  "devDependencies": [
1123
- "ocaml@4.13.1000@d41d8cd9", "@opam/easy-format@opam:1.3.2@1ea9f987",
1128
+ "ocaml@4.13.1000@d41d8cd9", "@opam/easy-format@opam:1.3.3@5d74d95b",
1124
1129
  "@opam/dune@opam:2.9.3@f57a6d69"
1125
1130
  ]
1126
1131
  },
@@ -1233,14 +1238,14 @@
1233
1238
  ],
1234
1239
  "devDependencies": [ "ocaml@4.13.1000@d41d8cd9" ]
1235
1240
  },
1236
- "@grain/libbinaryen@105.1.0@d41d8cd9": {
1237
- "id": "@grain/libbinaryen@105.1.0@d41d8cd9",
1241
+ "@grain/libbinaryen@106.0.0@d41d8cd9": {
1242
+ "id": "@grain/libbinaryen@106.0.0@d41d8cd9",
1238
1243
  "name": "@grain/libbinaryen",
1239
- "version": "105.1.0",
1244
+ "version": "106.0.0",
1240
1245
  "source": {
1241
1246
  "type": "install",
1242
1247
  "source": [
1243
- "archive:https://registry.npmjs.org/@grain/libbinaryen/-/libbinaryen-105.1.0.tgz#sha1:ed69f20fbe6dee06eb3fd02c2ffb2e2df7c36115"
1248
+ "archive:https://registry.npmjs.org/@grain/libbinaryen/-/libbinaryen-106.0.0.tgz#sha1:268a76d0b798fc06cfe4236ccc553bdf19444c32"
1244
1249
  ]
1245
1250
  },
1246
1251
  "overrides": [],
@@ -1267,7 +1272,7 @@
1267
1272
  "ocaml@4.13.1000@d41d8cd9",
1268
1273
  "@opam/dune-configurator@opam:2.9.3@174e411b",
1269
1274
  "@opam/dune@opam:2.9.3@f57a6d69",
1270
- "@grain/libbinaryen@105.1.0@d41d8cd9"
1275
+ "@grain/libbinaryen@106.0.0@d41d8cd9"
1271
1276
  ],
1272
1277
  "devDependencies": [
1273
1278
  "@opam/ocamlformat@opam:0.20.1@30a05b69",
@@ -1,21 +1,6 @@
1
1
  opam-version: "2.0"
2
- synopsis: """Declarative definition of command line interfaces for OCaml"""
3
- maintainer: ["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
4
- authors: ["The cmdliner programmers"]
5
- homepage: "https://erratique.ch/software/cmdliner"
6
- doc: "https://erratique.ch/software/cmdliner/doc"
7
- dev-repo: "git+https://erratique.ch/repos/cmdliner.git"
8
- bug-reports: "https://github.com/dbuenzli/cmdliner/issues"
9
- license: ["ISC"]
10
- tags: ["cli" "system" "declarative" "org:erratique"]
11
- depends: ["ocaml" {>= "4.08.0"}]
12
- build: [[ make "all" "PREFIX=%{prefix}%" ]]
13
- install: [[make "install" "LIBDIR=%{_:lib}%" "DOCDIR=%{_:doc}%"]
14
- [make "install-doc" "LIBDIR=%{_:lib}%" "DOCDIR=%{_:doc}%"]]
15
- url {
16
- src: "https://erratique.ch/software/cmdliner/releases/cmdliner-1.1.0.tbz"
17
- checksum: "sha512=e2fad706829e7b8b50d1a510b59b87e44294252d8e8bdd9d6cb07f435d7c1c123f82353eedf29e9a4b7768da485516b89b62bf956234e90d7eae1bbaae2c9263"}
18
- description: """
2
+ synopsis: "Declarative definition of command line interfaces for OCaml"
3
+ description: """\
19
4
  Cmdliner allows the declarative definition of command line interfaces
20
5
  for OCaml.
21
6
 
@@ -30,4 +15,25 @@ Cmdliner has no dependencies and is distributed under the ISC license.
30
15
  [1]: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html
31
16
  [2]: http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
32
17
 
33
- Home page: http://erratique.ch/software/cmdliner"""
18
+ Home page: http://erratique.ch/software/cmdliner"""
19
+ maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>"
20
+ authors: "The cmdliner programmers"
21
+ license: "ISC"
22
+ tags: ["cli" "system" "declarative" "org:erratique"]
23
+ homepage: "https://erratique.ch/software/cmdliner"
24
+ doc: "https://erratique.ch/software/cmdliner/doc"
25
+ bug-reports: "https://github.com/dbuenzli/cmdliner/issues"
26
+ depends: [
27
+ "ocaml" {>= "4.08.0"}
28
+ ]
29
+ build: [make "all" "PREFIX=%{prefix}%"]
30
+ install: [
31
+ [make "install" "LIBDIR=%{_:lib}%" "DOCDIR=%{_:doc}%"]
32
+ [make "install-doc" "LIBDIR=%{_:lib}%" "DOCDIR=%{_:doc}%"]
33
+ ]
34
+ dev-repo: "git+https://erratique.ch/repos/cmdliner.git"
35
+ url {
36
+ src: "https://erratique.ch/software/cmdliner/releases/cmdliner-1.1.1.tbz"
37
+ checksum:
38
+ "sha512=5478ad833da254b5587b3746e3a8493e66e867a081ac0f653a901cc8a7d944f66e4387592215ce25d939be76f281c4785702f54d4a74b1700bc8838a62255c9e"
39
+ }
@@ -1,17 +1,4 @@
1
1
  opam-version: "2.0"
2
- build: [
3
- ["dune" "subst"] {dev}
4
- ["dune" "build" "-p" name "-j" jobs]
5
- ["dune" "runtest" "-p" name "-j" jobs] {with-test}
6
- ["dune" "build" "-p" name "@doc"] {with-doc}
7
- ]
8
- maintainer: ["martin@mjambon.com" "rudi.grinberg@gmail.com"]
9
- authors: ["Martin Jambon"]
10
- bug-reports: "https://github.com/mjambon/easy-format/issues"
11
- homepage: "https://github.com/mjambon/easy-format"
12
- doc: "https://mjambon.github.io/easy-format/"
13
- license: "BSD-3-Clause"
14
- dev-repo: "git+https://github.com/mjambon/easy-format.git"
15
2
  synopsis:
16
3
  "High-level and functional interface to the Format module of the OCaml standard library"
17
4
  description: """
@@ -32,15 +19,40 @@ nodes:
32
19
  Atoms represent any text that is guaranteed to be printed as-is. Lists can model
33
20
  any sequence of items such as arrays of data or lists of definitions that are
34
21
  labelled with something like "int main", "let x =" or "x:"."""
22
+ maintainer: ["martin@mjambon.com" "rudi.grinberg@gmail.com"]
23
+ authors: ["Martin Jambon"]
24
+ license: "BSD-3-Clause"
25
+ homepage: "https://github.com/mjambon/easy-format"
26
+ doc: "https://mjambon.github.io/easy-format/"
27
+ bug-reports: "https://github.com/mjambon/easy-format/issues"
35
28
  depends: [
36
- "dune" {>= "1.10"}
37
- "ocaml" {>= "4.02.3"}
29
+ "dune" {>= "2.9"}
30
+ "ocaml" {>= "4.08"}
31
+ "odoc" {with-doc}
38
32
  ]
33
+ build: [
34
+ ["dune" "subst"] {dev}
35
+ [
36
+ "dune"
37
+ "build"
38
+ "-p"
39
+ name
40
+ "-j"
41
+ jobs
42
+ "--promote-install-files=false"
43
+ "@install"
44
+ "@runtest" {with-test}
45
+ "@doc" {with-doc}
46
+ ]
47
+ ["dune" "install" "-p" name "--create-install-files" name]
48
+ ]
49
+ dev-repo: "git+https://github.com/mjambon/easy-format.git"
39
50
  url {
40
51
  src:
41
- "https://github.com/mjambon/easy-format/releases/download/1.3.2/easy-format-1.3.2.tbz"
52
+ "https://github.com/mjambon/easy-format/releases/download/1.3.3/easy-format-1.3.3.tbz"
42
53
  checksum: [
43
- "sha256=3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926"
44
- "sha512=e39377a2ff020ceb9ac29e8515a89d9bdbc91dfcfa871c4e3baafa56753fac2896768e5d9822a050dc1e2ade43c8967afb69391a386c0a8ecd4e1f774e236135"
54
+ "sha256=eafccae911c26ca23e4ddacee3eaa54654d20f973b8680f84b708cef43adc416"
55
+ "sha512=611b3124f6a0ec6406b7bda8018a94c9c4a9da9d22495a5c34a6312bf7f0f0607a9529b276f7039ce3f3b15a955dac413d6d1229a55d5ac291302a3ddd5807e5"
45
56
  ]
46
57
  }
58
+ x-commit-hash: "56c57e69ef067d1cc4e31029d31e77e55b46be95"
@@ -19,6 +19,6 @@ description: "
19
19
  Part of the Jane Street's PPX rewriters collection.
20
20
  "
21
21
  url {
22
- src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_yojson_conv_lib-v0.14.0.tar.gz"
23
- checksum: "md5=e23c5593a7211ad4fb09e26e9a74698a"
22
+ src: "https://ocaml.janestreet.com/ocaml-core/v0.15/files/ppx_yojson_conv_lib-v0.15.0.tar.gz"
23
+ checksum: "sha256=f9d2c5eff4566ec1f1f379b186ed22c8ddd6be0909a160bc5a9ac7abc6a6b684"
24
24
  }
@@ -24,6 +24,7 @@ depends: [
24
24
  "ocaml-compiler-libs" {>= "v0.11.0"}
25
25
  "ppx_derivers" {>= "1.0"}
26
26
  "sexplib0" {>= "v0.12"}
27
+ "sexplib0" {with-test & < "v0.15"}
27
28
  "stdlib-shims"
28
29
  "ocamlfind" {with-test}
29
30
  "re" {with-test & >= "1.9.0"}
@@ -53,10 +54,10 @@ build: [
53
54
  dev-repo: "git+https://github.com/ocaml-ppx/ppxlib.git"
54
55
  url {
55
56
  src:
56
- "https://github.com/ocaml-ppx/ppxlib/releases/download/0.25.0/ppxlib-0.25.0.tbz"
57
+ "https://github.com/ocaml-ppx/ppxlib/releases/download/0.26.0/ppxlib-0.26.0.tbz"
57
58
  checksum: [
58
- "sha256=2d2f150e7715845dc578d254f705a67600be71c986b7e67e81befda612870bd5"
59
- "sha512=464220e3d8c75503824b73393df0b8ad16019acf55b8ecef89f8d464cd6d054e470ce4866b244216c5f7b85a5e8abad908aad212a78b4a132f3092fa785da0de"
59
+ "sha256=63117b67ea5863935455fe921f88fe333c0530f0483f730313303a93af817efd"
60
+ "sha512=9cfc9587657d17cdee5483e2a03292f872c42886e512bcc7442652e6418ce74c0135c731d8a68288c7fecae7f1b2defd93fe5acf8edb41e25144a8cec2806227"
60
61
  ]
61
62
  }
62
- x-commit-hash: "2fde140076144150d01997d529d451bbcae439c4"
63
+ x-commit-hash: "18b1ad68b59d151d662147661e43b159ac491f68"
@@ -8,19 +8,19 @@ authors: [
8
8
  "Rudi Grinberg"
9
9
  "Gabriel Radanne"
10
10
  ]
11
- license: "LGPL-2.0 with OCaml linking exception"
11
+ license: "LGPL-2.0-or-later WITH OCaml-LGPL-linking-exception"
12
12
  homepage: "https://github.com/ocaml/ocaml-re"
13
13
  bug-reports: "https://github.com/ocaml/ocaml-re/issues"
14
14
  dev-repo: "git+https://github.com/ocaml/ocaml-re.git"
15
15
 
16
16
  build: [
17
- ["dune" "subst"] {pinned}
17
+ ["dune" "subst"] {dev}
18
18
  ["dune" "build" "-p" name "-j" jobs]
19
19
  ["dune" "runtest" "-p" name "-j" jobs] {with-test}
20
20
  ]
21
21
 
22
22
  depends: [
23
- "ocaml" {>= "4.02"}
23
+ "ocaml" {>= "4.03"}
24
24
  "dune" {>= "2.0"}
25
25
  "ounit" {with-test}
26
26
  "seq"
@@ -37,10 +37,10 @@ Pure OCaml regular expressions with:
37
37
  """
38
38
  url {
39
39
  src:
40
- "https://github.com/ocaml/ocaml-re/releases/download/1.10.3/re-1.10.3.tbz"
40
+ "https://github.com/ocaml/ocaml-re/releases/download/1.10.4/re-1.10.4.tbz"
41
41
  checksum: [
42
- "sha256=846546967f3fe31765935dd40a6460a9424337ecce7b12727fcba49480790ebb"
43
- "sha512=d02103b7b8b8d8bc797341dcc933554745427f3c1b51b54b4ac9ff81badfd68c94726c57548b08e00ca99f3e09741b54b6500e97c19fc0e8fcefd6dfbe71da7f"
42
+ "sha256=83eb3e4300aa9b1dc7820749010f4362ea83524742130524d78c20ce99ca747c"
43
+ "sha512=92b05cf92c389fa8c753f2acca837b15dd05a4a2e8e2bec7a269d2e14c35b1a786d394258376648f80b4b99250ba1900cfe68230b8385aeac153149d9ce56099"
44
44
  ]
45
45
  }
46
- x-commit-hash: "c5d5df80e128c3d7646b7d8b1322012c5fcc35f3"
46
+ x-commit-hash: "e9a4cecb8294c1839db18b1d0c30e755ec85ed5e"
@@ -45,12 +45,12 @@ build: [
45
45
  ]
46
46
  ]
47
47
  dev-repo: "git+https://github.com/janestreet/spawn.git"
48
- x-commit-hash: "b5a25cab2f53a5ee9e10a7b8a96506cc61ce1198"
48
+ x-commit-hash: "13d279ebfa8c40d4bafe18cddfdff0de54b4eaff"
49
49
  url {
50
50
  src:
51
- "https://github.com/janestreet/spawn/archive/v0.15.0.tar.gz"
51
+ "https://github.com/janestreet/spawn/archive/v0.15.1.tar.gz"
52
52
  checksum: [
53
- "sha256=310fb2a50ac7f64c738182cbabd9d27c1aeae1a08107fe14da8d35a87cbb57c7"
54
- "sha512=3a775b57a73efee6adbc30b32fa779f27d11c7008a46f90fdb9da6288533e2d83fc49dbcd770c087f2e4560c5586ff72a9a2985d8929955773cc10d83f126013"
53
+ "sha256=9afdee314fab6c3fcd689ab6eb5608d6b78078e6dede3953a47debde06c19d50"
54
+ "sha512=efdb31d5ec5ea36d0bc80224d4ee04e46ce3428d1662870e6cebece92bc313d6eebee378802c0c059dd6e0cafea515308c31b7dfaf04a098eb4566583c1e9ed4"
55
55
  ]
56
56
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "build": "dune build -p easy-format"
3
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@grain/binaryen.ml",
3
- "version": "0.15.0",
3
+ "version": "0.16.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.12.0",
9
- "@grain/libbinaryen": ">= 105.1.0 < 106.0.0",
8
+ "ocaml": ">= 4.12.0 < 4.14.0",
9
+ "@grain/libbinaryen": ">= 106.0.0 < 107.0.0",
10
10
  "@opam/dune": ">= 2.9.1 < 3.0.0",
11
11
  "@opam/dune-configurator": ">= 2.9.1 < 3.0.0"
12
12
  },
@@ -1534,7 +1534,12 @@ CAMLprim value
1534
1534
  caml_binaryen_return_get_value(value _exp) {
1535
1535
  CAMLparam1(_exp);
1536
1536
  BinaryenExpressionRef exp = BinaryenExpressionRef_val(_exp);
1537
- CAMLreturn(alloc_BinaryenExpressionRef(BinaryenReturnGetValue(exp)));
1537
+ BinaryenExpressionRef val = BinaryenReturnGetValue(exp);
1538
+ if (val == NULL) {
1539
+ CAMLreturn(Val_none);
1540
+ } else {
1541
+ CAMLreturn(caml_alloc_some(alloc_BinaryenExpressionRef(val)));
1542
+ }
1538
1543
  }
1539
1544
 
1540
1545
  CAMLprim value
@@ -1273,8 +1273,9 @@ function caml_binaryen_drop_set_value(exp, value) {
1273
1273
 
1274
1274
  //Provides: caml_binaryen_return_get_value
1275
1275
  //Requires: binaryen
1276
+ //Requires: to_option
1276
1277
  function caml_binaryen_return_get_value(exp) {
1277
- return binaryen.Return.getValue(exp);
1278
+ return to_option(binaryen.Return.getValue(exp));
1278
1279
  }
1279
1280
 
1280
1281
  //Provides: caml_binaryen_return_set_value
@@ -693,7 +693,7 @@ end
693
693
 
694
694
  module Return = struct
695
695
  external make : Module.t -> t -> t = "caml_binaryen_return"
696
- external get_value : t -> t = "caml_binaryen_return_get_value"
696
+ external get_value : t -> t option = "caml_binaryen_return_get_value"
697
697
  external set_value : t -> t -> unit = "caml_binaryen_return_set_value"
698
698
  end
699
699
 
@@ -241,7 +241,7 @@ end
241
241
 
242
242
  module Return : sig
243
243
  val make : Module.t -> t -> t
244
- val get_value : t -> t
244
+ val get_value : t -> t option
245
245
  val set_value : t -> t -> unit
246
246
  end
247
247
 
@@ -8,14 +8,7 @@ let () =
8
8
  match C.ocaml_config_var c "system" with
9
9
  | Some "macosx" ->
10
10
  (* These flags preserve the original C++ error behavior. Ref https://github.com/ocaml/ocaml/issues/10423 *)
11
- [
12
- "-cc";
13
- "clang++";
14
- "-cclib";
15
- "-Wl,-keep_dwarf_unwind";
16
- "-cclib";
17
- "-Wl,-no_compact_unwind";
18
- ]
11
+ [ "-cc"; "clang++" ]
19
12
  | Some _ -> default
20
13
  | None -> default
21
14
  in
@@ -20,6 +20,20 @@ let _ = Settings.set_low_memory_unused false
20
20
  let wasm_mod = Module.create ()
21
21
  let _ = Module.set_features wasm_mod [ Module.Feature.all ]
22
22
 
23
+ (* Testing Return.get_value *)
24
+ let _ =
25
+ assert (
26
+ Option.is_some
27
+ (Expression.Return.get_value
28
+ (Expression.Return.make wasm_mod
29
+ (Expression.Const.make wasm_mod (Literal.int32 0l)))))
30
+
31
+ let _ =
32
+ assert (
33
+ Option.is_none
34
+ (Expression.Return.get_value
35
+ (Expression.Return.make wasm_mod (Expression.Null.make ()))))
36
+
23
37
  (* Create function type for i32 (i32, i32) *)
24
38
  let params () = Type.create [| Type.int32; Type.int32 |]
25
39
  let results = Type.int32