aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/detect.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-03-09 18:02:47 -0500
committerXavier Claessens <xclaesse@gmail.com>2023-03-09 22:04:38 -0500
commitd897c300f1a76e068f40f9d98182a80de9d2411b (patch)
treea0bdfe9a8be0380d6f61413ed0efb2e28ea9147b /mesonbuild/compilers/detect.py
parentc91a6ad0130e64fabf30b6bae58ae266453ab86a (diff)
downloadmeson-d897c300f1a76e068f40f9d98182a80de9d2411b.zip
meson-d897c300f1a76e068f40f9d98182a80de9d2411b.tar.gz
meson-d897c300f1a76e068f40f9d98182a80de9d2411b.tar.bz2
compiler.preprocess should only update the private name per directory
We add a unique ID to each rule we create, to work around the use of an entire build target with private directory named "preprocess" per use of the preprocess() method. But this ID doesn't need to increment every time it is used anywhere -- only when it is used in the same subdir as a previous time. That is the only case where it could conflict. By making the increment counter per-subdir, we can avoid potential frivolous rebuilds when a new preprocess() is added in a different directory, the build is reconfigured, and all uses in the entire project tree suddenly get new output paths even if they haven't changed.
Diffstat (limited to 'mesonbuild/compilers/detect.py')
0 files changed, 0 insertions, 0 deletions