aboutsummaryrefslogtreecommitdiff
path: root/build/name
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-01 12:18:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-01 12:18:40 +0200
commite0de4f26fcf598b4f6beaa2847c4d43a4c761f5b (patch)
tree42e79e141d5b3488cb98843589a68001c875ed01 /build/name
parent0dee00f28e623830e816c4002c8004c86055df85 (diff)
Warn about configured/command line value mismatch
Also store configured but unspecified values
Diffstat (limited to 'build/name')
-rw-r--r--build/name9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/name b/build/name
index fc89f44..f45930e 100644
--- a/build/name
+++ b/build/name
@@ -39,6 +39,15 @@ namespace build
bool pair {false};
};
+ inline bool
+ operator== (const name& x, const name& y)
+ {
+ return x.type == y.type && x.dir == y.dir && x.value == y.value;
+ }
+
+ inline bool
+ operator!= (const name& x, const name& y) {return !(x == y);}
+
typedef std::vector<name> names;
std::ostream&