diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-05-12 23:04:54 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-05-12 23:04:54 +0300 |
commit | ca89cda917f9de1daf98adbabd2a9f4563d5b5fa (patch) | |
tree | 8984a2eed1cc63da119cc7a458755ad3aa6a2211 | |
parent | b5060807f74f376fac68a8911301fc54e2162260 (diff) | |
download | meson-ca89cda917f9de1daf98adbabd2a9f4563d5b5fa.zip meson-ca89cda917f9de1daf98adbabd2a9f4563d5b5fa.tar.gz meson-ca89cda917f9de1daf98adbabd2a9f4563d5b5fa.tar.bz2 |
Create subdirectories in build dir as they are encountered.
-rw-r--r-- | interpreter.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py index 61c32bb..d79dae5 100644 --- a/interpreter.py +++ b/interpreter.py @@ -1077,6 +1077,7 @@ class Interpreter(): % subdir) self.visited_subdirs[subdir] = True self.subdir = subdir + os.mkdir(os.path.join(self.environment.build_dir, subdir)) buildfilename = os.path.join(self.subdir, environment.build_filename) self.build_def_files.append(buildfilename) absname = os.path.join(self.environment.get_source_dir(), buildfilename) @@ -1124,7 +1125,8 @@ class Interpreter(): elif 'command' in kwargs: res = self.func_run_command(node, kwargs['command'], {}) if res.returncode != 0: - raise InterpreterException('Running configure command failed.') + raise InterpreterException('Running configure command failed.\n%s\n%s' % + (res.stdout, res.stderr)) else: raise InterpreterException('Configure_file must have either "configuration" or "command".') |