]> git.bitcoin.ninja Git - ldk-c-bindings/commit - deterministic-build-wrappers/rustc
Don't pass 'embed-bitcode'/'lto' while building proc-macros
authorMatt Corallo <git@bluematt.me>
Tue, 4 Jun 2024 22:06:42 +0000 (22:06 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 6 Jun 2024 13:45:28 +0000 (13:45 +0000)
commit45018ac4d74145997bfeb8d478419bbd0d9d2608
tree50e45c3457b47804c8762a30c28485cd85027406
parent05c3f9db0d834732d521999d7def4287f3c2aa17
Don't pass 'embed-bitcode'/'lto' while building proc-macros

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.
deterministic-build-wrappers/rustc