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

--target not used? #95

Open
ctm opened this issue Mar 19, 2020 · 1 comment
Open

--target not used? #95

ctm opened this issue Mar 19, 2020 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@ctm
Copy link

ctm commented Mar 19, 2020

I have a yew project I'd like to run cargo geiger on, but geiger fails because it tries to compile for the native target (x86_64-apple-darwin)rather than wasm32-unknown-unknown.

cargo check --target wasm32-unknown-unknown works and cargo check --target is-not-used fails due to that being an unknown triple, but cargo geiger --target wasm32-unknown-unknown fails because it tries to compile for x86_64-apple-darwin and cargo geiger --target is-not-used fails the same way. This makes me think that --target is not being used.

$ cargo geiger -V
cargo-geiger 0.9.1
$ cargo geiger --target is-not-used
   Compiling proc-macro2 v1.0.9
...
error: failed to run custom build command for `yew-router v0.11.0`

Caused by:
  process didn't exit successfully: `/Users/ctm/poker/rust/poker/target/debug/build/yew-router-ee33477902963ec1/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Selected target `x86_64-apple-darwin` is not compatible with web-sys', /Users/ctm/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/yew-router-0.11.0/build.rs:28:9
@anderejd anderejd added bug Something isn't working help wanted Extra attention is needed labels Apr 8, 2020
@anderejd
Copy link
Contributor

anderejd commented Apr 8, 2020

Thanks for the bug report.

This issue can be solved as part of #16 #69, at least it would be affected by switching from cargo to cargo_metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants