about summary refs log tree commit diff
path: root/x.py
diff options
context:
space:
mode:
authorAbhishek Chanda <abhishek.becs@gmail.com>2016-12-11 15:25:31 +0000
committerAbhishek Chanda <abhishek.becs@gmail.com>2016-12-11 15:25:31 +0000
commitb7cd840dd7b36df7014abe458a6c799266e5bbe3 (patch)
tree230de10d0fb62006d0fe19a4411e4fb2d8a0e43c /x.py
parente0158e02f97957c3d8cbd9c52da5aadaf898d447 (diff)
downloadrust-b7cd840dd7b36df7014abe458a6c799266e5bbe3.tar.gz
rust-b7cd840dd7b36df7014abe458a6c799266e5bbe3.zip
Handle Ctrl+C in the build script
Diffstat (limited to 'x.py')
-rwxr-xr-xx.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/x.py b/x.py
index 54148b0d2b2..d281a6abc93 100755
--- a/x.py
+++ b/x.py
@@ -16,4 +16,7 @@ sys.path.append(os.path.abspath(os.path.join(dir, "src", "bootstrap")))
 
 import bootstrap
 
-bootstrap.main()
+try:
+    bootstrap.main()
+except KeyboardInterrupt:
+    sys.exit()