-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Simplify build directory structure. #2302
Copy link
Copy link
Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-lowLow priorityLow priority
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-lowLow priorityLow priority
Type
Fields
Give feedbackNo fields configured for issues without a type.
Our build directory contains too many files. Somebody who builds Rust for the first time is probably going to be interested in running
rustc, but where to find it? Let's make it super simple.This is about the directory structure of our build artifacts, not the source.
First we move the distracting "llvm", "rt", "rustllvm", "tmp" from the top of the build structure to under each target triple. We already build most of these things per target; they have just use a different directory structure than our Rust projects. Now only "config.mk", "config.stamp", "dl", "doc", "Makefile", and the target-triple-named output directories are at the top of the build structure.
Second we create a symlink called "out" that links to
$(HOST_TRIPLE)/stage2. Now after you do a build you just typeout/bin/rustcinstead ofx86_64-unknown-linux/stage2/bin/rustc.