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

Add build support for Cargo's build-std feature. #74033

Merged
merged 7 commits into from Jul 17, 2020

Commits on Jul 15, 2020

  1. Automatically calculate std::env::consts::ARCH.

    This simplifies the definition for ARCH.
    
    Note that this changes asmjs-unknown-emscripten ARCH to `wasm32`,
    which reflects the actual target arch.
    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    8c6c1dd View commit details
    Browse the repository at this point in the history
  2. Use cfg_if in libtest.

    Simplifies some of the expressions, and provides a default.
    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    432b4c1 View commit details
    Browse the repository at this point in the history
  3. Use cfg_if in libpanic_abort.

    This allows setting a default abort using the core intrinsic.
    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    9e58908 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6e9a1de View commit details
    Browse the repository at this point in the history
  5. Tweak formatting.

    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    cee9f05 View commit details
    Browse the repository at this point in the history
  6. Use an allow-list of platforms that support std.

    Use a fall-through for no_std targets.
    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    0eb293d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3d44d3c View commit details
    Browse the repository at this point in the history