-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
227 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
[package] | ||
name = "wasmer-llvm-backend" | ||
version = "0.5.7" | ||
authors = ["Lachlan Sneff <[email protected]>"] | ||
authors = ["The Wasmer Engineering Team <[email protected]>"] | ||
edition = "2018" | ||
readme = "README.md" | ||
|
||
[dependencies] | ||
wasmer-runtime-core = { path = "../runtime-core", version = "0.5.7" } | ||
inkwell = { git = "https://github.com/wasmerio/inkwell", branch = "llvm8-0", features = ["llvm8-0"] } | ||
wasmparser = "0.34.0" | ||
hashbrown = "0.1.8" | ||
smallvec = "0.6.8" | ||
|
@@ -16,6 +15,15 @@ libc = "0.2.49" | |
nix = "0.14.0" | ||
capstone = { version = "0.5.0", optional = true } | ||
|
||
[dependencies.inkwell] | ||
git = "https://github.com/wasmerio/inkwell" | ||
branch = "llvm8-0" | ||
default-features = false | ||
features = ["llvm8-0", "target-x86"] | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
winapi = { version = "0.3", features = ["memoryapi"] } | ||
|
||
[build-dependencies] | ||
cc = "1.0" | ||
lazy_static = "1.2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub fn round_up_to_page_size(size: usize) -> usize { | ||
(size + (4096 - 1)) & !(4096 - 1) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
mod common; | ||
|
||
#[cfg(unix)] | ||
mod unix; | ||
#[cfg(unix)] | ||
pub use self::unix::*; | ||
|
||
#[cfg(target_family = "windows")] | ||
compile_error!("windows not yet supported for the llvm-based compiler backend"); | ||
mod win; | ||
#[cfg(target_family = "windows")] | ||
pub use self::win::*; | ||
|
||
#[cfg(not(any(unix, target_family = "windows")))] | ||
compile_error!("Your system is not yet supported for the llvm-based compiler backend"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.