Giter VIP home page Giter VIP logo

Comments (7)

Kobzol avatar Kobzol commented on August 28, 2024 1

#126479 posted instead to disable this flag by default, I don't think it should be enabled for most contributors.

from rust.

Kobzol avatar Kobzol commented on August 28, 2024

Sounds suspiciously similar to #122491.

from rust.

Kobzol avatar Kobzol commented on August 28, 2024

Yeah this is again caused by llvm-bitcode-linker being enabled πŸ˜† @kjetilkjeka Do you think that there's some more general solution to the rebuild problem?

from rust.

kjetilkjeka avatar kjetilkjeka commented on August 28, 2024

Thanks for notifying me about this. I am travelling this weekend, meaning i might not have a chance to thoroughly investigate before Monday. (But I will at the latest be able to look on Monday).

The last time it was due to dependency on the same crates with different rustflags. One from llbc-linker and one from some other tool (rustdoc?). The two different invocations maps to the same cache entry but is invalid between each other and thus triggers a rebuild.

The solution last time was to mimic the rustflags being used other places in llbc-linker. That might be a good short term solution now as well.

I don't know about the long term solution but it seems like either caching multiple versions of a crate or unifying the rustflag somewhere might be alternatives?

from rust.

Kobzol avatar Kobzol commented on August 28, 2024

Thanks for notifying me about this. I am travelling this weekend, meaning i might not have a chance to thoroughly investigate before Monday.

Of course, there's no rush, I just wanted to let you know, given that you already have some experience in debugging this πŸ˜†

This seems rather brittle though, as you mention. I wonder what's so unique about this tool that it causes these rebuilds so often.

@onur-ozkan You mentioned here that we cannot share flags between all Step invocations. But maybe it would make sense to better share flags between at least this tool and other steps, rather than hardcoding selected flags? (as was done last time with the parallel compiler).

from rust.

Kobzol avatar Kobzol commented on August 28, 2024

Actually, I wonder if we really need to enable this linker by default in all four bootstrap profiles.

from rust.

onur-ozkan avatar onur-ozkan commented on August 28, 2024

@onur-ozkan You mentioned #122491 (comment) that we cannot share flags between all Step invocations. But maybe it would make sense to better share flags between at least this tool and other steps, rather than hardcoding selected flags? (as was done last time with the parallel compiler).

Sure, seems fine to me. I didn't expect it to be a problem this frequently.

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.