aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2012-11-05 23:48:24 +0200
committerJukka Jylänki <jujjyl@gmail.com>2012-11-05 23:57:27 +0200
commit1263a5943800d9ad3d9be1add92517cb84f9957c (patch)
treec8dd1744965c64b5441b45d3f3f2692c03f521eb /tools
parentf3004cd212cfbb9966b65dd54ca25aea642d6ee3 (diff)
If configure in shared.py fails with an exception, print out the command line that was attempted.
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index c94c110e..50d4ca00 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -555,7 +555,11 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
env['EMMAKEN_JUST_CONFIGURE'] = '1'
if 'cmake' in args[0]:
args = Building.handle_CMake_toolchain(args, env)
- Popen(args, stdout=stdout, stderr=stderr, env=env).communicate()
+ try:
+ Popen(args, stdout=stdout, stderr=stderr, env=env).communicate()
+ except Exception, e:
+ print >> sys.stderr, 'Error: Exception thrown when invoking Popen in configure with args: "%s"!' % ' '.join(args)
+ raise
del env['EMMAKEN_JUST_CONFIGURE']
@staticmethod