Commit Graph

2616 Commits

Author SHA1 Message Date
792ebc06fc fix bug in wasi::environ_get, fix off by one error in env_size_get 2019-05-29 18:04:55 -07:00
5d63c96d96 Update ARCHITECTURE.md 2019-05-29 15:12:45 -07:00
f0544e9e7a Merge #470
470: add mapdir for emscripten; implement getdents, etc. r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-05-29 21:36:29 +00:00
4c8915efd8 add mapdir pr to changelog 2019-05-29 14:35:58 -07:00
281c5ff45d fix bugs in em mapdir, improve it for relative paths, use it more 2019-05-29 14:20:52 -07:00
b627fbf8bb Added support for Go 2019-05-29 12:36:09 -07:00
7a7aa4608a fix emscripten regression tests 2019-05-29 11:41:29 -07:00
3e1fde6d67 Merge #474
474: fix(runtime-c-api) Set the install name of the dylib to `@rpath`. r=Hywan a=Hywan

```sh
$ objdump -macho -dylib-id libwasmer_runtime_c_api.dylib
libwasmer_runtime_c_api.dylib:
/Users/distiller/project/target/release/deps/libwasmer_runtime_c_api.dylib
```

we observe that the dylib ID (aka install name) is set to
`/Users/distiller/project/target/release/deps/libwasmer_runtime_c_api.dylib`,
which is valid only in the context of CircleCI.

This patch changes the dylib ID to
`@rpath/libwasmer_runtime_c_api.dylib`, which can be then changed by
the linker option `-rpath` (use `-Wl,-rpath,$value` with the compiler
to send the `-rpath` value to the linker).

This is super useful when dynamically linking libraries against
another language. Having the dylib ID already set to `@rpath` avoid any
build system to call `install_name_tool` manually, which isn't always
possible (e.g. in Go with cgo where we can only pass options to the
compiler with `LDFLAGS`, it's impossible to run any arbitrary command).

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2019-05-29 14:44:44 +00:00
ff5d50b273 fix(runtime-c-api) Set the install name of the dylib to @rpath.
```sh
$ objdump -macho -dylib-id libwasmer_runtime_c_api.dylib
libwasmer_runtime_c_api.dylib:
/Users/distiller/project/target/release/deps/libwasmer_runtime_c_api.dylib
```

we observe that the dylib ID (aka install name) is set to
`/Users/distiller/project/target/release/deps/libwasmer_runtime_c_api.dylib`,
which is valid only in the context of CircleCI.

This patch changes the dylib ID to
`@rpath/libwasmer_runtime_c_api.dylib`, which can be then changed by
the linker option `-rpath` (use `-Wl,-rpath,$value` with the compiler
to send the `-rpath` value to the linker).

This is super useful when dynamically linking libraries against
another language.
2019-05-29 16:14:04 +02:00
e0d4c9e1b7 Trying to make ghr always to pass in CircleCI 2019-05-29 01:03:51 -07:00
fd8675324c Merge remote-tracking branch 'origin/master' into feature/metering 2019-05-29 11:16:05 +08:00
74fb26cf24 Upload artifacts always (when possible) 2019-05-28 18:15:48 -07:00
dd2735d0dc Fixed macos build 2019-05-28 15:31:19 -07:00
5791583228 Create dynamic libraries for different platforms per release 2019-05-28 15:04:58 -07:00
6606a7c7b0 silence clippy on pointer alignment 2019-05-28 14:06:24 -07:00
f8b94b7469 Merge remote-tracking branch 'origin/master' into feature/add-mapdir-for-emscripten 2019-05-28 13:48:12 -07:00
b0d73917af Merge pull request #472 from styfle/patch-1
Add 🦀 to the Rust language
2019-05-28 12:22:00 -07:00
4b2092d613 Add 🦀 to the Rust language 2019-05-28 14:41:12 -04:00
3a4517d5d6 clean up code, verify it behaves the same as emscripten with js 2019-05-28 10:06:22 -07:00
b78a8af228 Added missing functions for pyodide
Since Pyodide is focused on running on desktop, this pull-request lacks
Javascript runtime functions. It also sorted alphabetically some functions
2019-05-28 09:39:49 +02:00
ef4908d3bc Fix security contact 2019-05-27 14:41:18 -07:00
df03fc1fd3 Added Security Policy. Fixed #468 2019-05-27 13:57:17 -07:00
813b57b40e Merge #465
465: Running jq r=syrusakbary a=syrusakbary

This PR does:
* Add the functions needed to run jq
* Refactor how varargs strings are handled (to simplify them)

Co-authored-by: Syrus <me@syrusakbary.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-05-27 20:25:25 +00:00
fe3db46173 Fixed time ptr 2019-05-27 12:47:15 -07:00
12299cdbf0 Merge branch 'master' into feature/jq 2019-05-27 12:13:19 -07:00
6fd6ad92fa Trying to fix timegm 2019-05-27 12:09:04 -07:00
921e95035f Cleanup expect messages used for debugging 2019-05-26 22:50:23 -05:00
00707ea849 Cleanup cranelift validation 2019-05-26 22:44:37 -05:00
3f0cafce5c Remove old Cranelift compiler code 2019-05-26 22:32:11 -05:00
bf1cfc2578 Re-enable deny warnings in clif backend 2019-05-26 22:17:49 -05:00
f42ca84480 Add calling convention to function signatures 2019-05-26 14:44:17 -05:00
cc4b1871d0 Fix get global type 2019-05-26 14:15:30 -05:00
8069cdac16 Merge branch 'master' into feature/clif-cgapi 2019-05-26 12:04:45 -05:00
6ca311f92d Fix compilation errors and warnings 2019-05-26 11:13:37 -05:00
5da0c4766a Update to Arc<RwLock<ModuleInfo>> for interior mutability 2019-05-25 19:30:44 -05:00
d440776bc0 Update lifetime of function builder references 2019-05-25 18:06:41 -05:00
69f0f7d666 Merge #469
469: Update wasmparser 0.29.2 -> 0.30.0 r=MarkMcCaskey a=repi

Updated to the latest version of wasmparser

Co-authored-by: Johan Andersson <repi@repi.se>
2019-05-25 01:01:18 +00:00
fc15bc58f6 add mapdir for emscripten; implement getdents, etc. 2019-05-24 18:00:07 -07:00
8018453266 Update wasmparser 0.29.2 -> 0.30.0 2019-05-24 23:18:08 +02:00
dd30595358 Trying to fix issues 2019-05-24 13:30:41 -07:00
dd9c5774f3 Separate fpathconf from pathconf 2019-05-24 12:15:52 -07:00
c7dceba0d8 Improved formatting 2019-05-24 12:09:00 -07:00
e0895aadf1 Merge branch 'master' into feature/jq 2019-05-24 12:08:28 -07:00
e8c9715099 Merge #467
467: feat(runtime-c-api) `wasmer_instantiate` raises the source error r=syrusakbary a=Hywan

Instead of returning only “error instanting”, `wasmer_instantiate` can
return the real error message.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-05-24 18:26:04 +00:00
42327a569e Merge branch 'master' into feat-runtime-error 2019-05-24 11:25:40 -07:00
4dab51f620 Merge branch 'master' into feat-runtime-error 2019-05-24 11:18:50 -07:00
e0187ab9dc Improved lint cache 2019-05-24 11:13:12 -07:00
36b9366767 Commented runtime-abi for now 2019-05-24 11:00:57 -07:00
02a92562f6 Removed zbox requirement 2019-05-24 10:13:08 -07:00
dc6a53bff7 chore(changelog) Add #467. 2019-05-24 14:28:37 +02:00