Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime-c-api: not installing cranelift if not necessary #708

Merged
merged 14 commits into from
Aug 22, 2019
Merged
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/runtime-c-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@ crate-type = ["cdylib", "rlib", "staticlib"]
libc = "0.2.60"

[dependencies.wasmer-runtime]
default-features = false
path = "../runtime"
version = "0.6.0"

[dependencies.wasmer-runtime-core]
default-features = false
path = "../runtime-core"
version = "0.6.0"

[features]
default = ["cranelift-backend"]
debug = ["wasmer-runtime/debug"]
llvm = ["wasmer-runtime/llvm"]
cranelift-backend = ["wasmer-runtime/cranelift", "wasmer-runtime/default-backend-cranelift"]
llvm-backend = ["wasmer-runtime/llvm"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not adding default-backend-llvm to the list of features to enable with llvm-backend?

singlepass-backend = ["wasmer-runtime/default-backend-singlepass", "wasmer-runtime-core/backend-singlepass"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is:

- wasmer-runtime-core/backend-singlepass
+ wasmer-runtime/backend-singlepass

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checking shortly

Copy link
Contributor Author

@YaronWittenstein YaronWittenstein Aug 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Hywan I seems it should stay wasmer-runtime/default-backend-singlepass

https://github.com/wasmerio/wasmer/blob/master/lib/runtime/Cargo.toml#L41

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm talking about the second item of the list. You are using wasmer-runtime-core/…, I think it is wasmer-runtime/….


[build-dependencies]
cbindgen = "0.9.0"