Stream: general

Topic: Define a default target


FuriouZz (Apr 25 2020 at 14:41, on Zulip):

Hello everyone! QUESTION. Is there a way to tell rust-analyzer the default target I want to use ? By default, it use x86_64-apple-darwin but I want to target wasm32-unknown-unknown.

Amanieu (Apr 25 2020 at 14:57, on Zulip):

cc @matklad

matklad (Apr 25 2020 at 15:50, on Zulip):

Not at the moment, the relevant commands are hard-coded:

FuriouZz (Apr 25 2020 at 17:11, on Zulip):

Well. Why not, I can see that.

FuriouZz (Apr 25 2020 at 23:27, on Zulip):

Well...very complicated to setup a testing environment =/. Breakpoint does not work...

FuriouZz (Apr 26 2020 at 00:15, on Zulip):

Is there some change expected for the get_rustc_cfg_options ?
https://github.com/rust-analyzer/rust-analyzer/blob/fc57358efda7c028cbe8a438446cce5f540f48ca/crates/rust-analyzer/src/world.rs#L132
https://github.com/rust-analyzer/rust-analyzer/blob/0ad6b6d40763f67cc727d000f616f88a47f43d41/crates/rust-analyzer/src/cli/load_cargo.rs#L150

simlay (Apr 26 2020 at 21:51, on Zulip):

I submitted https://github.com/rust-analyzer/rust-analyzer/issues/4163 with relevant words and links

FuriouZz (Apr 26 2020 at 22:08, on Zulip):

Thanks @simlay I was not really sure to create an issue for that haha. I started a PR (not sent yet), but still locked by the purpore of the get_rustc_cfg_options() call. I can make a draft PR.

FuriouZz (Apr 26 2020 at 22:16, on Zulip):

My draft PR https://github.com/rust-analyzer/rust-analyzer/pull/4166

FuriouZz (Apr 29 2020 at 20:48, on Zulip):

Any help?

Last update: May 29 2020 at 17:25UTC