Giter Club home page Giter Club logo

Comments (8)

cuviper avatar cuviper commented on June 12, 2024

Does cargo communicate this in any way? Maybe an environment variable?

from autocfg.

jdm avatar jdm commented on June 12, 2024

I've asked that question in https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/Signalling.20the.20presence.20of.20-Z.20build-std.

from autocfg.

melvyn2 avatar melvyn2 commented on June 12, 2024

This breaks the bigint crate for certain targets like i686-apple-darwin. Any idea for when this might be fixed?

from autocfg.

cuviper avatar cuviper commented on June 12, 2024

There's no plan how to fix it yet...

Assuming you mean num-bigint, it should degrade ok without it, no?

from autocfg.

melvyn2 avatar melvyn2 commented on June 12, 2024

Some dependent crates rely on features which get deactivated because of this, even though bigint builds successfully... I'll try to build the stdlib by hand in the meantime. Hopefully -Z build-std will be stabilized eventually.

from autocfg.

jyn514 avatar jyn514 commented on June 12, 2024

Why does autocfg care if the crate is loaded from the sysroot or passed with --extern? Shouldn't extern crate std work in both cases?

from autocfg.

jyn514 avatar jyn514 commented on June 12, 2024

Oh, is the problem that cargo only passes --extern std=... to the final crate, not to build scripts? I wonder if it should set some environment variable with a list of the std crates built from source ... in general I think it would be nice for cargo to expose a way for build scripts to invoke rustc the same way cargo would in the current build.

from autocfg.

jyn514 avatar jyn514 commented on June 12, 2024

Ah, that already exists and it's called CARGO_ENCODED_RUSTFLAGS 😄 I think we should open an upstream issue for cargo to include the --extern std flags in CARGO_ENCODED_RUSTFLAGS.

from autocfg.

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.