Commit Graph

12 Commits

Author SHA1 Message Date
Jordan Rose
e564e70996 [build-script] Put back HOME global.
We don't use it in this file, but we do elsewhere!

Swift SVN r24608
2015-01-21 20:33:45 +00:00
Jordan Rose
f0e21729a2 [build-script] Remove SWIFT_SOURCE_ROOT default to ~/src/s/.
This default would never actually be used, because if you did check out your
Swift sources there it would look like a normal Swift checkout and we would
infer SWIFT_SOURCE_ROOT from that.

Also, clean up some comments based on suggestions from Dave.

Swift SVN r24606
2015-01-21 19:46:14 +00:00
Dmitri Hrybenko
d08cf39271 build-script: some buildbot environments don't set $HOME, so don't try
to unconditionally query it

Swift SVN r24373
2015-01-12 21:33:13 +00:00
Dmitri Hrybenko
5c76bdfd38 SwiftBuildSupport: move WorkingDirectory class to the module so that it
is reusable

Swift SVN r24268
2015-01-08 04:47:37 +00:00
Dmitri Hrybenko
e889627fb0 SwiftBuildSupport: optionally print the command to be executed
Swift SVN r24267
2015-01-08 04:47:32 +00:00
Jordan Rose
5f766b07ca [build-script] Change the default SWIFT_SOURCE_ROOT and SWIFT_BUILD_ROOT.
SWIFT_SOURCE_ROOT is now auto-detected from the location of the build script
files. It looks for the following layouts:

$SWIFT_SOURCE_ROOT/<LLVM_CHECKOUT>/tools/<SWIFT_CHECKOUT>/utils/build-script
$SWIFT_SOURCE_ROOT/<SWIFT_CHECKOUT>/utils/build-script

and defaults back to ~/src/s (as before) if neither of those matches.

SWIFT_BUILD_ROOT now defaults to $SWIFT_SOURCE_ROOT/build, rather than
~/build/swift.

Swift SVN r24194
2015-01-05 23:58:57 +00:00
Jordan Rose
7dea958826 [build-script] Add a --show-presets option.
This isn't really doing anything more than just looking at the preset files,
but we might as well have it.

Swift SVN r24193
2015-01-05 23:58:57 +00:00
Jordan Rose
d5ce4e40fd [build-script] Underscore-prefix a helper function.
Per Python style, module-private functions should be prefixed with
underscores so that they are not made available to importers.

Swift SVN r24192
2015-01-05 23:58:53 +00:00
Dmitri Hrybenko
92f9f6308d build-script: stringify the exit code before applying string
concatenation

Swift SVN r24171
2015-01-05 07:17:53 +00:00
Dmitri Hrybenko
cc02f264a9 build-script: refactor to use uniform error reporting
Swift SVN r24168
2015-01-02 22:53:08 +00:00
Dmitri Hrybenko
49a510a8af SwiftBuildSupport.py: fix typo in error message
Swift SVN r24153
2014-12-26 10:44:00 +00:00
Dmitri Hrybenko
6670bb76ec Rewrite the CMake build system
Swift SVN r24124
2014-12-23 22:15:30 +00:00