mirror of
https://github.com/mii443/wasmer.git
synced 2025-09-02 15:39:32 +00:00
Update documentation and build configuration.
This commit is contained in:
@ -14,7 +14,7 @@ We recommend trying the following commands before sending a pull request to ensu
|
|||||||
|
|
||||||
- `cargo fmt --all` Ensures all code is correctly formatted.
|
- `cargo fmt --all` Ensures all code is correctly formatted.
|
||||||
- Run `cargo test` in the crates that you are modifying.
|
- Run `cargo test` in the crates that you are modifying.
|
||||||
- Run `cargo build --all` (nightly) or `cargo build --all --exclude wasmer-singlepass-backend`
|
- Run `cargo build --all`.
|
||||||
|
|
||||||
A comprehensive CI test suite will be run by a Wasmer team member after the PR has been created.
|
A comprehensive CI test suite will be run by a Wasmer team member after the PR has been created.
|
||||||
|
|
||||||
@ -25,9 +25,3 @@ A comprehensive CI test suite will be run by a Wasmer team member after the PR h
|
|||||||
`Didn't find usable system-wide LLVM`
|
`Didn't find usable system-wide LLVM`
|
||||||
|
|
||||||
Building Wasmer with the LLVM backend requires LLVM to be installed
|
Building Wasmer with the LLVM backend requires LLVM to be installed
|
||||||
|
|
||||||
#### Singlepass Nightly Only
|
|
||||||
|
|
||||||
`error[E0554]: #![feature] may not be used on the stable release channel`
|
|
||||||
|
|
||||||
Building Wasmer with the singlepass backend requires the nightly version of Rust
|
|
||||||
|
9
Makefile
9
Makefile
@ -13,18 +13,13 @@ compilers :=
|
|||||||
# Singlepass is enabled
|
# Singlepass is enabled
|
||||||
RUST_VERSION := $(shell rustc -V)
|
RUST_VERSION := $(shell rustc -V)
|
||||||
|
|
||||||
ifneq (, $(findstring nightly,$(RUST_VERSION)))
|
|
||||||
# Singlepass doesn't work yet on Windows
|
|
||||||
ifneq ($(OS), Windows_NT)
|
|
||||||
compilers += singlepass
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(ARCH), x86_64)
|
ifeq ($(ARCH), x86_64)
|
||||||
# In X64, Cranelift is enabled
|
# In X64, Cranelift is enabled
|
||||||
compilers += cranelift
|
compilers += cranelift
|
||||||
# LLVM could be enabled if not in Windows
|
# LLVM could be enabled if not in Windows
|
||||||
ifneq ($(OS), Windows_NT)
|
ifneq ($(OS), Windows_NT)
|
||||||
|
# Singlepass doesn't work yet on Windows
|
||||||
|
compilers += singlepass
|
||||||
# Autodetect LLVM from llvm-config
|
# Autodetect LLVM from llvm-config
|
||||||
ifneq (, $(shell which llvm-config))
|
ifneq (, $(shell which llvm-config))
|
||||||
LLVM_VERSION := $(shell llvm-config --version)
|
LLVM_VERSION := $(shell llvm-config --version)
|
||||||
|
@ -32,8 +32,3 @@ orders of magnitude faster than `wasmer-compiler-cranelift` and
|
|||||||
The fact that singlepass is not prone to JIT bombs and offers a very
|
The fact that singlepass is not prone to JIT bombs and offers a very
|
||||||
predictable compilation speed makes it ideal for **blockchains** and other
|
predictable compilation speed makes it ideal for **blockchains** and other
|
||||||
systems where fast and consistent compilation times are very critical.
|
systems where fast and consistent compilation times are very critical.
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
At the moment, this crate depends on Rust nightly to be compiled, as it uses
|
|
||||||
`dynasm-rs` which can only be compiled in Nightly.
|
|
||||||
|
Reference in New Issue
Block a user