summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/spack b/bin/spack
index 013acf4db8..7dd3dbabbb 100755
--- a/bin/spack
+++ b/bin/spack
@@ -93,6 +93,10 @@ def main():
tty.set_debug(args.debug)
spack.debug = args.debug
+ if spack.debug:
+ import spack.util.debug as debug
+ debug.register_interrupt_handler()
+
spack.spack_working_dir = working_dir
if args.mock:
from spack.packages import PackageDB