Skip to content

Conversation

TheBlueMatt
Copy link
Collaborator

No description provided.

cargo is usually good about not passing `RUSTFLAGS` to build-time
dependencies which need to be built for the host platform rather
than the target platform, but for some reason it does not do so
for `proc-macro` crates.

Thus, we have to manually drop the `embed-bitcode` and `lto`
arguments when calling rustc in our existing rustc wrapper.
...allowing users to build an `Address` safely.
...and explicitly allow `test_mod_pointers` so new rustc doesn't
spit out a ton of warnings
It appears some newer toolchains require this when linking, and
honestly not sure why older ones didn't, but its good practice in
any case.
@TheBlueMatt TheBlueMatt merged commit 4156170 into lightningdevkit:0.1 Apr 7, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant