diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-08 11:50:12 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-09 02:37:56 +0530 |
commit | e90f21ae598cf8f7c11ec01a730895e74d2326eb (patch) | |
tree | 2ef9370e2e02eced840aedfff07f41277d5baa16 /mesonbuild/scripts/yelphelper.py | |
parent | 87f07cdf3db9923b41ac23d27d8e017c8c57ecc3 (diff) | |
download | meson-e90f21ae598cf8f7c11ec01a730895e74d2326eb.zip meson-e90f21ae598cf8f7c11ec01a730895e74d2326eb.tar.gz meson-e90f21ae598cf8f7c11ec01a730895e74d2326eb.tar.bz2 |
javac: Fail gracefully if there's no JVM
Without this, we error out with an exception if `javac` is found but
`java` isn't:
[...]
File "mesonbuild/interpreter.py", line 1759, in detect_compilers
comp.sanity_check(self.environment.get_scratch_dir(), self.environment)
File "mesonbuild/compilers.py", line 1279, in sanity_check
pe = subprocess.Popen(cmdlist, cwd=work_dir)
File "/usr/lib64/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'java'
Diffstat (limited to 'mesonbuild/scripts/yelphelper.py')
0 files changed, 0 insertions, 0 deletions