-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
A-incr-compArea: Incremental compilationArea: Incremental compilationT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
When building with the rustc argument to emit an llvm bc file
cargo rustc -v -- --emit llvm-bc
Cargo builds successfully but prints the warning
warning: ignoring emit path because multiple .bc files were produced
Doing a recursive search for all *.bc files from root, I can see that the bc file I'm wanting was not generated, but there are a lot of bc files in ./target/debug/incremental/
.
So I turned off incremental building export CARGO_INCREMENTAL=0
and cleared the target directory, then ran the build command again. This time the correct bc file is generated in ./target/debug/deps
Metadata
Metadata
Assignees
Labels
A-incr-compArea: Incremental compilationArea: Incremental compilationT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.