aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-05-13 16:19:33 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-05-15 08:39:25 +0000
commita25f0741e8ac663c8b3a6e33df8a0875dceab804 (patch)
tree876ea71401b61c2935cf6620e51620bd10ddbb8a /mesonbuild/compilers/cpp.py
parentcd3e65a790b98e9106b56ad76863abe55b4096fa (diff)
downloadmeson-a25f0741e8ac663c8b3a6e33df8a0875dceab804.zip
meson-a25f0741e8ac663c8b3a6e33df8a0875dceab804.tar.gz
meson-a25f0741e8ac663c8b3a6e33df8a0875dceab804.tar.bz2
ninjabackend: Use order-only gen-header deps for gen-sources
We do not need to *always* rebuild generated sources when a generated header changes. We will get that information from the compiler's dependency file, and ninja will track it for us. This is exactly the same as static sources. However, we do need an order-only dependency on all generated headers, because we cannot know what headers will be needed at compile time (which is when the compiler's dependency file is generated). This fixes spurious rebuilds and relinking in many cases.
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
0 files changed, 0 insertions, 0 deletions