-
Notifications
You must be signed in to change notification settings - Fork 442
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
fix: rustc_compile_action
emits CcInfo
for wasm32
targets
#1979
Conversation
@titanous your initial addition gated |
I don't actually have any code using the patch from #715 right now, so I'm not certain... I don't remember why I added that condition 😰 |
#627 said this:
|
Hmm that surprises me. I'd expect |
It seems like that case should be covered by the targets in |
305acfc
to
3a5b19b
Compare
@titanous any further thoughts on this or what I should do to move this forward? |
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.
@rickvanprim @titanous I think this change is fine but could you add a unit test of sorts with some comments on the rationale for needing this? None of the maintainers really use WASM so we need to rely on the community and heavy documentation to make sure we don't break things.
3a5b19b
to
be793fd
Compare
27e716e
to
bb59ea0
Compare
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.
Awesome work! Sorry it took me so long to look at this 😅
Just a couple of requests
examples/nix_cross_compiling/bazel/toolchain_rules/cc_tools/wasm-ld.bzl
Outdated
Show resolved
Hide resolved
6e6b169
to
2a19f00
Compare
2a19f00
to
187f4a1
Compare
e51f42c
to
155cfaf
Compare
Regarding the example and |
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 think this is looking good! I just had one last question 😄
b9f6d5f
to
76a4c9d
Compare
7768002
to
8e19e11
Compare
Looks like you have some nix errors? I can take another pass when CI is green. |
8e19e11
to
68fe2be
Compare
I think I've come up with an approach that just installs Nix as part of the |
6150ef2
to
07e5bed
Compare
It went green! 😱 That said, for whatever reason until I forced my local Nix to rebuild |
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.
Oh sorry! I didn't realize CI had been passing. I just had a few more requests and then this otherwise looks good to me!
@@ -0,0 +1,3 @@ | |||
# Use `path:` syntax to avoid copying the entire repo to the Nix Store. |
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.
Can you add a comment to what the .envrc
file is and link to some docs? For those who don't know anything about nix like me 😅
@@ -0,0 +1,25 @@ | |||
{ |
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.
Can you add a BUILD.bazel
file to this package and a README explaining what the package is for?
(relates to #1979 (comment))
07e5bed
to
c6022d7
Compare
@UebelAndre I have hopefully addressed your feedback and CI passed 🙂 |
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.
Awesome! Thank you for all your patience and hard work!
This change allows
cc_binary()
,cc_library()
, etc. targets to depend onrust_libary()
,rust_static_library()
, etc. targets when targetingwasm32
.