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

rustbuild: There are two tmp/ directories #34586

Closed
alexcrichton opened this issue Jun 30, 2016 · 9 comments · Fixed by #98564
Closed

rustbuild: There are two tmp/ directories #34586

alexcrichton opened this issue Jun 30, 2016 · 9 comments · Fixed by #98564
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@alexcrichton
Copy link
Member

alexcrichton commented Jun 30, 2016

When doing a build with rustbuild, it turns out that two tmp/ dirs end up being created. One is in the build/ directory that rustbuild owns, and one is in the current directory (next to the build directory). The one next to the build directory contains some information for partitioning tests and information about the error index. Both of these shouldn't exist and their output should be in the rustbuild build/ directory.

@alexcrichton alexcrichton added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Jun 30, 2016
@cyplo
Copy link
Contributor

cyplo commented Jul 9, 2016

@Mark-Simulacrum
Copy link
Member

I seem to recall seeing a tmp directory inside build, but I can't seem to recreate it now. Maybe it only appears temporarily during some particular steps and I've deleted it.

@alexcrichton What do you see as the steps for removing the tmp directory inside build/? Or is the solution to leave that and move the tmp directory created in the root into the build/ directory?

@alexcrichton
Copy link
Member Author

I'd advocate to move the root tmp directory into the build/ directory, personally. The strategy here is to track down what's creating that dir (I'm not sure myself) and just update it to all use the build/ dir

@Mark-Simulacrum Mark-Simulacrum added the C-cleanup Category: PRs that clean code up or issues documenting cleanup. label Jul 25, 2017
@Mark-Simulacrum Mark-Simulacrum added this to the impl period milestone Sep 15, 2017
@aturon aturon removed this from the impl period milestone Sep 15, 2017
@mati865
Copy link
Contributor

mati865 commented Jun 12, 2019

Doesn't seem to be case anymore, ./x.py build creates only build/tmp/.

@petrochenkov
Copy link
Contributor

Perhaps x.py test creates it because I still see the second tmp outside of the build directory created in the last few days.

@mati865
Copy link
Contributor

mati865 commented Jun 12, 2019

@rustbot claim

Indeed x.py test created this directory, I'll see if I can fix it.

@rustbot rustbot self-assigned this Jun 12, 2019
@mati865
Copy link
Contributor

mati865 commented Jun 13, 2019

This directory is created by codegen-units tests which use // compile-flags: -Zincremental=tmp/partitioning-tests/* like here.

I'll have PR soon.

@petrochenkov
Copy link
Contributor

cc #63429 (re-adds the outer tmp to .gitignore).

@mati865

This comment has been minimized.

@rustbot rustbot removed their assignment Aug 29, 2019
@bors bors closed this as completed in 6cb46ca Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
7 participants