Skip to content

Support per-stage RUSTFLAGS in rustbuild. #33609

Description

@eddyb

Right now rustbuild invokes cargo which wants to rebuild the world if it sees a different RUSTFLAGS value, while my workflow involves changing RUSTFLAGS just to test stage1+ with -Z orbit.

It would be nice to have passing --stage1-rustflags "-Z orbit" to the python script (or the environment variable `RUSTFLAGS1="-Z orbit") just work.

Currently the Makefiles have something similar but it doesn't actually work for compiletest, just rustc.

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    on May 13, 2016
  2. apaprocki commented on Feb 23, 2017

    @apaprocki

    Did rustbuild ever get support for this? This appears to also be breaking chroot builds that need to pass per-stage sysroot values.

  3. Mark-Simulacrum commented on May 24, 2017

    @Mark-Simulacrum
    Member

    I'm going to unassign @alexcrichton from this; I think others should be able to implement this and as far as I know they don't have any particular concern with this specific bug.

  4. added
    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
    and removed
    C-enhancementCategory: An issue proposing an enhancement or a PR with one.
    on Jul 25, 2017
  5. added this to the milestone on Sep 15, 2017
  6. removed this from the milestone on Sep 15, 2017
  7. Mark-Simulacrum commented on Aug 11, 2019

    @Mark-Simulacrum
    Member

    We support this via RUSTFLAG_STAGE_NOT_0 and RUSTFLAGS_STAGE_0 set in the environment today.

  8. eddyb commented on Aug 12, 2019

    @eddyb
    ContributorAuthor

    @Mark-Simulacrum I wonder if we should switch to RUSTFLAGS_BOOTSTRAP and RUSTFLAGS_NOT_BOOTSTRAP.

  9. Mark-Simulacrum commented on Aug 12, 2019

    @Mark-Simulacrum
    Member

    That would make sense, I'll reopen to track that.

  10. added a commit that references this issue on Aug 20, 2019
    af77aed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions