-
Notifications
You must be signed in to change notification settings - Fork 832
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
iOS Support - via .dylib & Headless Runtime #2516
iOS Support - via .dylib & Headless Runtime #2516
Conversation
lib/c-api/src/wasm_c_api/engine.rs
Outdated
@@ -23,7 +23,6 @@ use wasmer_engine_universal::Universal; | |||
/// | |||
/// This is a Wasmer-specific type with Wasmer-specific functions for | |||
/// manipulating it. | |||
#[cfg(feature = "compiler")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undelete this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing so causes this:
error[E0432]: unresolved import `super::super::engine::wasmer_compiler_t`
--> lib/c-api/src/wasm_c_api/unstable/engine.rs:4:43
|
4 | use super::super::engine::{wasm_config_t, wasmer_compiler_t, wasmer_engine_t};
| ^^^^^^^^^^^^^^^^^ no `wasmer_compiler_t` in `wasm_c_api::engine`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which is used by this method:
pub extern "C" fn wasmer_is_compiler_available(compiler: wasmer_compiler_t) -> bool {
match compiler {
wasmer_compiler_t::CRANELIFT if cfg!(feature = "cranelift") => true,
wasmer_compiler_t::LLVM if cfg!(feature = "llvm") => true,
wasmer_compiler_t::SINGLEPASS if cfg!(feature = "singlepass") => true,
_ => false,
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, keep #[cfg(feature = "compiler")]
here. But add:
use super::super::engine:{wasm_config_t, wasmer_engine_t};
#[cfg(feature = "compiler")]
use super::super::engine::wasmer_compiler_t;
in lib/c-api/src/wasm_c_api/unstable/engine.rs
. It's a bug here.
Thank you very much!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added those compiler conditions, I had to add some others to fix more build errors though?
00e87ed
to
35fd710
Compare
bors try |
tryBuild failed: |
bors try Edit: Eh... nice try |
🔒 Permission denied Existing reviewers: click here to make NathHorrigan a reviewer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your work! I believe we are on a good track. I hope my review provides relevant inputs :-).
lib/c-api/src/wasm_c_api/engine.rs
Outdated
@@ -23,7 +23,6 @@ use wasmer_engine_universal::Universal; | |||
/// | |||
/// This is a Wasmer-specific type with Wasmer-specific functions for | |||
/// manipulating it. | |||
#[cfg(feature = "compiler")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, keep #[cfg(feature = "compiler")]
here. But add:
use super::super::engine:{wasm_config_t, wasmer_engine_t};
#[cfg(feature = "compiler")]
use super::super::engine::wasmer_compiler_t;
in lib/c-api/src/wasm_c_api/unstable/engine.rs
. It's a bug here.
Thank you very much!
That should be ready for you now @syrusakbary ! |
bors try |
I also updated the Xcode build scripts so you shouldn't have any issues on your M1 machine :) |
bors try |
tryAlready running a review |
bors try- |
bors try |
bors try- |
bors try |
Bors is weirdly failing:
|
That's very strange, according to Google that is an error caused when the userr calling Bors doesn't have permission. Do you wanna try again? |
@syrusakbary ^^ |
bors try |
tryAlready running a review |
bors try- |
bors try |
I think is because github actions file got changed. I'll close this PR and reopen as a new one from Wasmer (also I'll add you as contributor so you can directly push to the |
Description
This PR makes some fairly simple changes to feature flags so that forks originally intended
*-apple-darwin
now work for bothaarch64-apple-ios
/x86_64-apple-ios
.Review