Commit Graph

1408 Commits

Author SHA1 Message Date
Ivan Enderlin
9a95aaae15
fix(github) Remove a duplicate issue template 2019-03-07 10:17:15 +01:00
Ivan Enderlin
1dfae80c65 test(runtime-c-api) Fix compilation errors in test-exports.c. 2019-03-07 10:15:32 +01:00
Ivan Enderlin
725aff6fee test(runtime-c-api) Fix a compilation error in test-instantiate.c. 2019-03-07 10:15:32 +01:00
Ivan Enderlin
603f1fc57d test(runtime-c-api) Fix compilation errors in test-import-function.c. 2019-03-07 10:15:32 +01:00
Ivan Enderlin
2a0e42c1e5 test(runtime-c-api) Fix compilation errors in test-memory.c. 2019-03-07 10:15:32 +01:00
Ivan Enderlin
dcb4032e9d test(runtime-c-api) Fix compilation errors in test-imports.c. 2019-03-07 10:15:32 +01:00
Ivan Enderlin
c658224f0c test(runtime-c-api) Transforms all C/C++ warnings into errors.
This patch ensures that all our examples and tests do not generate
warnings. In C, it can be catastrophic sometimes…

Also, be sure that the `cmake` command doesn't emit any warnings too.
2019-03-07 10:15:32 +01:00
Brandon Fish
cad4110e10 Fix typo in Makefile test-emscripten 2019-03-06 23:58:07 -06:00
Brandon Fish
1957ddef53 Run emscripten tests with both compilers 2019-03-06 21:36:46 -06:00
Syrus Akbary
af9c26f4f9
Fixed links of wasmer runtime C api in crates.io and docs.rs 2019-03-06 18:22:16 -08:00
Syrus Akbary
6fae46d0d3
Improved bug report to get more info about the environment
Based on this feedback: https://github.com/wasmerio/wasmer/pull/243#pullrequestreview-211289058
2019-03-06 18:18:58 -08:00
Syrus Akbary
d0b42dd458
Merge pull request #243 from wasmerio/Hywan-patch-1
chore(github) Update issue templates
2019-03-06 18:08:09 -08:00
Syrus Akbary
49dc21363b
Merge pull request #242 from Hywan/doc-runtime-c-api
doc(runtime-c-api) Improve the `README.md`.
2019-03-06 17:28:02 -08:00
Syrus Akbary
acf2bc2722
Merge pull request #233 from wasmerio/feature/emscripten-for-bundling
implement more emscripten functions
2019-03-06 17:26:58 -08:00
Syrus
e63515279f Try to use LLVM_SYS_70_PREFIX for appveyor 2019-03-06 16:35:23 -08:00
Syrus
58897aba5a Try to use LLVM path uniformily for appveyor 2019-03-06 16:18:35 -08:00
Syrus
a0ff2733ce Go back to the appveyor build folder 2019-03-06 16:03:25 -08:00
Syrus
bd76a276fc Fixed path 2019-03-06 15:57:38 -08:00
Syrus
9812fa09c7 Trying custom LLVM install in windows appveyor 2019-03-06 15:49:35 -08:00
Syrus
0540c50b87 Use LLVM 5.0 instead of the default one 2019-03-06 15:27:41 -08:00
Syrus
95c90f84b7 Added LLVM to the PATH in windows appveyor 2019-03-06 15:13:38 -08:00
Lachlan Sneff
9f589de031 Reset Cargo.lock 2019-03-06 13:53:06 -08:00
Lachlan Sneff
e3e91c628b
Merge branch 'master' into feature/llvm-backend 2019-03-06 13:47:15 -08:00
Lachlan Sneff
334a1310df Change nginx integration just to test it it starts 2019-03-06 13:28:07 -08:00
Lachlan Sneff
9f93ac2fe5 Fix integration tests 2019-03-06 13:18:30 -08:00
Lachlan Sneff
8f2d90186d Fix circleci config 2019-03-06 12:45:42 -08:00
Lachlan Sneff
fd99ed60bf Split tests into spectests/code-tests and emscripten tests 2019-03-06 12:44:19 -08:00
Mackenzie Clark
fd5916e493
Merge branch 'master' into feature/emscripten-for-bundling 2019-03-06 10:18:26 -08:00
Mackenzie Clark
b1739d93ec remove leading underscores from execvp and exit 2019-03-06 10:18:00 -08:00
Ivan Enderlin
bedb05738b
Merge branch 'master' into doc-runtime-c-api 2019-03-06 18:50:49 +01:00
Ivan Enderlin
ec1a16512c
Merge pull request #238 from Hywan/feat-runtime-c-api-headers-in-out-dir
feat(runtime-c-api) Generate the C/C++ header files in `OUT_DIR` (+ copy in `CARGO_MANIFEST_DIR`).
2019-03-06 18:50:29 +01:00
Ivan Enderlin
145c6e1f18
Update ---bug-report.md 2019-03-06 15:55:16 +01:00
Ivan Enderlin
86644ed89f
chore(github) Update issue templates
This patch provides issue templates. It's a mix between Github defaults, and https://github.com/rustwasm/wasm-bindgen templates.

Thoughts?
2019-03-06 14:53:10 +01:00
Ivan Enderlin
f5ce1e8b60 doc(runtime-c-api) Improve the README.md.
This patch updates the `README.md` by adding badges, a Usage Section,
and a License Section. The Testing Section is slightly revamped.
2019-03-06 14:11:12 +01:00
Ivan Enderlin
d709191be1 doc(runtime-c-api) Declare the example as C, so that they are not tested.
Those examples contain C code. They must not be run by `rustdoc` as
tests.
2019-03-06 12:08:02 +01:00
Ivan Enderlin
365d00979b chore(runtime-c-api) Update the Cargo.lock file. 2019-03-06 11:03:38 +01:00
Ivan Enderlin
76caebebb4 fix(runtime-c-api) Provide a link target.
When compiling `wasmer-runtime-c-api` as a dependency of another
crate, `rustc` emits this warning:

```
warning: The package `wasmer_runtime_c_api` provides no linkable
target. The compiler might raise an error while compiling
`foo`. Consider adding 'dylib' or 'rlib' to key `crate-type` in
`wasmer_runtime_c_api`'s Cargo.toml. This warning might turn into a
hard error in the future.
```

To solve this issue, the `rlib` type has been added to the
`crate-type` list.
2019-03-06 11:02:14 +01:00
Ivan Enderlin
0f74133be3 feat(runtime-c-api) Build: Copy the C header files from OUT_DIR to CARGO_MANIFEST_DIR.
This patch copies the generated C and C++ header files from the
`OUT_DIR` to the root of the crate.
2019-03-06 10:58:40 +01:00
Ivan Enderlin
f2997357fc feat(runtime-c-api) Remove the flag WASM_EMSCRIPTEN_GENERATE_C_API_HEADERS.
This patch removes the `WASM_EMSCRIPTEN_GENERATE_C_API_HEADERS`
flag. Consequently, the C header files will be generated for each
build.

The `generate-c-api-headers` feature is also removed, since it becomes useless.
2019-03-06 10:42:32 +01:00
Ivan Enderlin
7c56d893c2 feat(runtime-c-api) Generate the C header file in OUT_DIR.
This patch changes the directory where the C header files are
generated, from `CARGO_MANIFEST_DIR` to `OUT_DIR`. The goal is: When
`wasm-runtime-c-api` is used as a dependency of another Rust project,
then the C header files are accessible in the `target/` directory
(i.e. the `OUT_DIR`).

Also, since `rustc` has a `--out-dir` directory, it increases the
flexibility of this approach: The user can generate the C header files
where she wants.
2019-03-06 10:42:06 +01:00
Brandon Fish
03909fe3c2 Run spectests with both compilers, activate using features 2019-03-06 00:15:07 -06:00
Lachlan Sneff
0e5d1172d6 Just install the signal handler once 2019-03-05 16:50:49 -08:00
Syrus Akbary
28bb264266
Merge pull request #232 from Hywan/fix-runtime-c-api-remove-warnings
fix(runtime-c-api) Fix several warnings
2019-03-05 16:38:14 -08:00
Syrus Akbary
e7e0fa813a
Merge pull request #237 from Hywan/fix-runtime-c-api-cbindgen-version
fix(runtime-c-api) Update `cbindgen`
2019-03-05 16:37:45 -08:00
Lachlan Sneff
f36aade2e5 Fix broken test 2019-03-05 14:57:37 -08:00
Lachlan Sneff
48b36a3b01 Runs on linux and also hopefully ci 2019-03-05 14:54:44 -08:00
Lachlan Sneff
13850929d7 Try again with path instead of environment var 2019-03-05 13:45:19 -08:00
Lachlan Sneff
fa3ef2e88d Remove .llvmenv 2019-03-05 13:34:22 -08:00
Lachlan Sneff
ae8676df44 Attempt to update circleci config to install llvm 2019-03-05 13:32:02 -08:00
Lachlan Sneff
276e5125b5 Filter out -fno-exceptions from llvm-config --cxxflags 2019-03-05 13:23:26 -08:00