Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

cargo-bpf: fix for rustc >= 1.45#67

Merged
rsdy merged 1 commit intofoniod:masterfrom
alessandrod:master
Jul 27, 2020
Merged

cargo-bpf: fix for rustc >= 1.45#67
rsdy merged 1 commit intofoniod:masterfrom
alessandrod:master

Conversation

@alessandrod
Copy link
Contributor

Since version 1.45, rustc no longer produces bitcode for crates by default. We need bitcode to turn on LTO, so pass -C embed-bitcode=yes to the compiler.

We must pass it in RUSTFLAGS since we need bitcode for all crates, while the flags passed as cargo rustc args only apply to the main crate.

Since version 1.45, rustc no longer produces bitcode for crates by
default. We need bitcode to turn on LTO, so pass -C embed-bitcode=yes to
the compiler.

We must pass it in RUSTFLAGS since we need bitcode for all crates, while
the flags passed as cargo rustc args only apply to the main crate.
@alessandrod alessandrod mentioned this pull request Jul 27, 2020
@rsdy rsdy merged commit e1e3c1b into foniod:master Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants