aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorAlex Hirsch <w4rh4wk@bluephoenix.at>2018-03-09 18:42:44 +0100
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-18 10:49:40 +0000
commitcbe18e01e49613f0db30c563c80767b30325bf39 (patch)
tree7d4dcba4347fa01aae1178d4ea072414c96d1f80 /mesonbuild/backend/ninjabackend.py
parentd7466066e468f9297bcad480003af882920c1159 (diff)
downloadmeson-cbe18e01e49613f0db30c563c80767b30325bf39.zip
meson-cbe18e01e49613f0db30c563c80767b30325bf39.tar.gz
meson-cbe18e01e49613f0db30c563c80767b30325bf39.tar.bz2
Deprecate `build_always`, add `build_always_stale`
Since `build_always` also adds a target to the set of default targets, this option is marked deprecated in favour of the new option `build_always_stale`. `build_always_stale` *only* marks the target to be always considered out of date, but does *not* add it to the set of default targets. The old behaviour can still be achieved by combining `build_always_stale` with `build_by_default`. fixes #1942
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 48f5fc2..9d72225 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -504,7 +504,7 @@ int dummy;
deps = self.unwrap_dep_list(target)
deps += self.get_custom_target_depend_files(target)
desc = 'Generating {0} with a {1} command.'
- if target.build_always:
+ if target.build_always_stale:
deps.append('PHONY')
if target.depfile is None:
rulename = 'CUSTOM_COMMAND'