Skip to content
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

warning: ignoring emit path because multiple .ll files were produced #69

Open
alex opened this issue Apr 24, 2023 · 1 comment
Open

Comments

@alex
Copy link

alex commented Apr 24, 2023

This appears to be a re-occurrence of the issue reported in #4.

To reproduce:

$ git clone https://github.com/pyca/cryptography
$ cd cryptography/src/rust/
$ cargo llvm-lines --version
cargo-llvm-lines 0.4.26
$ cargo llvm-lines --no-default-features --release
   Compiling cryptography-rust v0.1.0 (/Users/alex_gaynor/projects/cryptography/src/rust)
warning: ignoring emit path because multiple .ll files were produced
    Finished release [optimized] target(s) in 8.28s
  Lines            Copies           Function name
  -----            ------           -------------
  3                1                (TOTAL)
  3 (100.0%,100.0%) 1 (100.0%,100.0%) <T as core::convert::Into<U>>::into
@lqd
Copy link

lqd commented May 4, 2023

This looks to be related to ThinLTO specifically, which emits multiple .ll files in this situation.

Some workarounds (that are probably unsatisfying since you're likely trying to understand compile times in the actual config
you ship) to avoid that issue/warning:

  • using fat LTO
  • turning off LTO

Otherwise, with ThinLTO, using a single CGU would also give a bit more information (though I'm locally getting more than the 3 lines mentioned in the OP) in the range of 350K lines of IR, but I'm not sure how accurate that is.

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

No branches or pull requests

2 participants