Clang can emulate GNUC or MSVC behaviors. So instead of detecting
whether Clang is used to compile the code, it's better to detect the
targeted features are available.
Code proposed by @nlewycky, thanks!
1124: Update wapm submodule to 0.4.2 r=MarkMcCaskey a=MarkMcCaskey
Uses the updated wapm from the new release https://github.com/wasmerio/wapm-cli/releases/tag/0.4.2 which fixes a bug
Co-authored-by: Mark McCaskey <mark@wasmer.io>
This PR defines a cross-compiler `DEPRECATED(message)` macro. It must
be used as follows in Rust:
```rust
/// This is a documentation.
/// cbindgen:prefix=DEPRECATED(This is a deprecation message.")
pub extern "C" fn wasmer_foo() -> c_uint {
42
}
```
It will generate the following C header:
```c
/**
* This is a documentation.
*/
DEPRECATED("This is a deprecation message.")
unsigned int wasmer_foo();
```
And once this code is used by a C compiler, it will print something
like this (example from Clang):
```
…/test.c:…:…: error: 'wasmer_foo' is deprecated: This is a deprecation message. [-Werror,-Wdeprecated-declarations]
unsigned int x = wasmer_foo();
^
…/wasmer.h:…:…: note: 'wasmer_foo' has been explicitly marked deprecated here
DEPRECATED("This is a deprecation message.")
^
…/wasmer.h:…:…: note: expanded from macro 'DEPRECATED'
```
This is required for further deprecations.
1117: Improve formatting of error messages we display from wabt r=MarkMcCaskey a=MarkMcCaskey
Resolves#1107
Co-authored-by: Mark McCaskey <mark@wasmer.io>
1101: Add MIT license to crates that were missing it r=syrusakbary a=repi
Ran into a few crates in this repo with our license scanner that didn't have any license attached to them.
Added MIT to be consistent with the other crates. Please adjust if not correct.
Co-authored-by: Johan Andersson <repi@repi.se>
Ran into a few crates in this repo with our license scanner that didn't have any license attached to them.
Added MIT to be consistent with the other crates. Please adjust if not correct.
1097: Move inline breakpoint outside of runtime backend r=syrusakbary a=syrusakbary
<!--
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests
-->
# Description
There was some code smell leaking inline breakpoint implementation into the runtime core backend instead of the compiler itself. This PR fixes it.
<!--
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->
# Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Syrus <me@syrusakbary.com>