about summary refs log tree commit diff
path: root/x.py
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-03-03 05:27:07 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-03-04 21:38:26 +0300
commit11adac350b63ab3371a50b10184238ebc3a2be7f (patch)
tree87e871ec683de27076f38a832b8f04dc8b671860 /x.py
parent3b454665ea360619ceb45aac5b9eae6d5994dc64 (diff)
downloadrust-11adac350b63ab3371a50b10184238ebc3a2be7f.tar.gz
rust-11adac350b63ab3371a50b10184238ebc3a2be7f.zip
bootstrap.py: Report build status
Move some code from x.py to bootstrap.py
Diffstat (limited to 'x.py')
-rwxr-xr-xx.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/x.py b/x.py
index d281a6abc93..8f528889d60 100755
--- a/x.py
+++ b/x.py
@@ -9,14 +9,12 @@
 # option. This file may not be copied, modified, or distributed
 # except according to those terms.
 
-import sys
+# This file is only a "symlink" to boostrap.py, all logic should go there.
+
 import os
-dir = os.path.dirname(__file__)
-sys.path.append(os.path.abspath(os.path.join(dir, "src", "bootstrap")))
+import sys
+rust_dir = os.path.dirname(os.path.abspath(__file__))
+sys.path.append(os.path.join(rust_dir, "src", "bootstrap"))
 
 import bootstrap
-
-try:
-    bootstrap.main()
-except KeyboardInterrupt:
-    sys.exit()
+bootstrap.main()