diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-19 11:49:11 +0100 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-04-16 01:46:31 +0000 |
commit | b9774b44851780fc401a78e0e3da7ad8e76b7b54 (patch) | |
tree | 55a981a56b875f13988c69c18806810af128cf99 /mesonbuild/compilers/c.py | |
parent | ad0ba6a911b9fcdca24379bb4f14b4b5a312a3d5 (diff) | |
download | meson-b9774b44851780fc401a78e0e3da7ad8e76b7b54.zip meson-b9774b44851780fc401a78e0e3da7ad8e76b7b54.tar.gz meson-b9774b44851780fc401a78e0e3da7ad8e76b7b54.tar.bz2 |
generator: add dependency on generator in source tree
If find_program() returns a file from the source directory, anything
that uses it should add the file to the dependencies, so that they are
rebuilt whenever the script changes. Generator is not doing that.
While at it, I am doing two related fixes:
- Generator is not checking whther the generator actually was found,
resulting in a Python error involving NoneType if it isn't. To minimize
backwards compatibility issues, I am only raising the error when
g.process() is acutally called.
- the error message for custom_target with a nonexisting program
erroneously mention a not-found external program "nonexistingprogram".
The new error is similar to the one I am adding for generators.
Diffstat (limited to 'mesonbuild/compilers/c.py')
0 files changed, 0 insertions, 0 deletions