aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-03-22 21:49:47 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-05-31 17:49:29 -0400
commitae0b40945b08482d04b594187f266c77878a32b5 (patch)
treec615a0bc0d25ae7b3afbf96e2ddc228aae3de150 /mesonbuild/compilers/compilers.py
parent38c00feb9d2004c05491f52d6ec40f2ed8467b4e (diff)
downloadmeson-ae0b40945b08482d04b594187f266c77878a32b5.zip
meson-ae0b40945b08482d04b594187f266c77878a32b5.tar.gz
meson-ae0b40945b08482d04b594187f266c77878a32b5.tar.bz2
make sure no custom_target outputs are named "all" or "meson-internal__*"
Or any other reserved names. We check in add_target that the primary name of any build target isn't on the forbidden list, but custom_target allows names that are distinct from the output filenames, so we need to check those too. We would eventually still error out all the way at the end, with: ``` ERROR: Multiple producers for Ninja target "all". Please rename your targets. ``` But, if we can check that early and provide the underlying reason (reserved name) alongside actually useful debugging info (a line number), then why not? Refactor the check into a small helper function in the process.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
0 files changed, 0 insertions, 0 deletions