Replies: 3 comments 3 replies
-
This should mostly be doable by updating the |
Beta Was this translation helpful? Give feedback.
-
Rather than trying to make Bazel more like Cargo, perhaps it would make sense to just write Bazel rules for MIRAI? Since there will be a lot of commonality between Rustc and MIRAI rules, this project is probably the right place to do it. |
Beta Was this translation helpful? Give feedback.
-
Hi Herman,
I'm not sure how building MIRAI with bazel resolves the issue, as MIRAI
should be used instead of rustc in building other projects. The hermetic
build requirement of bazel makes it impossible to use the rustc binary from
my own local machine. One solution might be to write a new toolchain. In
general, the ultimate solution would be for rust bazel rules to support
rust_wrapper.
For now, I have used a workaround (although not a perfect one): I modified
the tool_path
<https://github.com/bazelbuild/rules_rust/blob/main/rust/private/rustc.bzl#L843>in
the private rust rules so that it points to MIRAI instead of rustc.
Best,
Shabnam
…On Sat, Mar 11, 2023 at 11:57 AM Herman Venter ***@***.***> wrote:
Rather than trying to make Bazel more like Cargo, perhaps it would make
sense to just write Bazel rules for MIRAI? Since there will be a lot of
commonality between Rustc and MIRAI rules, this project is probably the
right place to do it.
—
Reply to this email directly, view it on GitHub
<#1852 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD3GC7QDAWOACTTXS2FYWLLW3TKKRANCNFSM6AAAAAAVMLSGGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi folks,
I'd like to use a rustc wrapper (RUSTC_WRAPPER equivalent) but I could not figure how to do it.
I think one solution is being able to use rust toolchain from my local machine and I can replace rustc with the wrapper.
Please advise, thanks!
Beta Was this translation helpful? Give feedback.
All reactions