Skip to content

x.py setup creates config.toml in root directory, even if one is running in a different directory #78509

Closed
@pnkfelix

Description

@pnkfelix
Member

If you run x.py build in a directory with no config.toml, it suggests you run x.py setup first.

I did that.

Then I ran x.py build again. And it made the same suggestion.

The suggestion wasn't wrong, since there was no config.toml in my current directory, even after running x.py setup; the problem was that running x.py setup is generating the config.toml in the source root, rather than in the current directory.

Activity

added
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Oct 29, 2020
jyn514

jyn514 commented on Oct 29, 2020

@jyn514
Member

@pnkfelix are you using different config.toml files depending on the directory? Or did you intend to run x.py from the top-level directory?

jyn514

jyn514 commented on Oct 29, 2020

@jyn514
Member

Or did you intend to run x.py from the current directory but use the top-level config.toml?

cuviper

cuviper commented on Oct 29, 2020

@cuviper
Member

Normally x.py uses the config from the current directory, so I would expect x.py setup to create the same. I don't know about pnkfelix, but I often want to try a single source tree with multiple configs (bundled vs system LLVM, alt debug settings, etc.).

added a commit that references this issue on Oct 31, 2020

Rollup merge of rust-lang#78550 - jyn514:setup, r=Mark-Simulacrum

61eb1a8
added 2 commits that reference this issue on Oct 31, 2020

Rollup merge of rust-lang#78550 - jyn514:setup, r=Mark-Simulacrum

1ac678f

Rollup merge of rust-lang#78550 - jyn514:setup, r=Mark-Simulacrum

c0f356d
jyn514

jyn514 commented on Jan 1, 2021

@jyn514
Member

This was fixed in #78550.

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-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cuviper@pnkfelix@jyn514

        Issue actions

          `x.py setup` creates config.toml in root directory, even if one is running in a different directory · Issue #78509 · rust-lang/rust