path: root/
diff options
authorAlex Crichton <>2016-10-21 13:18:09 -0700
committerAlex Crichton <>2016-11-02 17:57:28 -0700
commita270b8014cbd3af6e03f7f808a2fea1e9f22ed88 (patch)
tree4bfaccfb9f5457555ea87fbbd67039328aa74563 /
parentAuto merge of #37540 - jonathandturner:rollup, r=jonathandturner (diff)
rustbuild: Rewrite user-facing interface
This commit is a rewrite of the user-facing interface to the rustbuild build system. The intention here is to make it much easier to compile/test the project without having to remember weird rule names and such. An overall view of the new interface is: # build everything ./ build # document everyting ./ doc # test everything ./ test # test libstd ./ test src/libstd # build libcore stage0 ./ build src/libcore --stage 0 # run stage1 run-pass tests ./ test src/test/run-pass --stage 1 The `src/bootstrap/` script is now aliased as a top-level `` script. This `x` was chosen to be both short and easily tab-completable (no collisions in that namespace!). The build system now accepts a "subcommand" of what to do next, the main ones being build/doc/test. Each subcommand then receives an optional list of arguments. These arguments are paths in the source repo of what to work with. That is, if you want to test a directory, you just pass that directory as an argument. The purpose of this rewrite is to do away with all of the arcane renames like "rpass" is the "run-pass" suite, "cfail" is the "compile-fail" suite, etc. By simply working with directories and files it's much more intuitive of how to run a test (just pass it as an argument). The rustbuild step/dependency management was also rewritten along the way to make this easy to work with and define, but that's largely just a refactoring of what was there before. The *intention* is that this support is extended for arbitrary files (e.g. `src/test/run-pass/`), but that isn't quite implemented just yet. Instead directories work for now but we can follow up with stricter path filtering logic to plumb through all the arguments.
Diffstat (limited to '')
1 files changed, 19 insertions, 0 deletions
diff --git a/ b/
new file mode 100755
index 0000000000..54148b0d2b
--- /dev/null
+++ b/
@@ -0,0 +1,19 @@
1#!/usr/bin/env python
2# Copyright 2016 The Rust Project Developers. See the COPYRIGHT
3# file at the top-level directory of this distribution and at
6# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7#> or the MIT license
8# <LICENSE-MIT or>, at your
9# option. This file may not be copied, modified, or distributed
10# except according to those terms.
12import sys
13import os
14dir = os.path.dirname(__file__)
15sys.path.append(os.path.abspath(os.path.join(dir, "src", "bootstrap")))
17import bootstrap