forked from lix-project/lix
Explicitely define LockFile::operator!=
It should be syntethised in terms of `operator==`, but the GCC version used on aarch64-linux doesn't implement that (see https://hydra.nixos.org/build/214848896=. So explicitely define it. Fix https://github.com/NixOS/nix/issues/8159
This commit is contained in:
parent
bbdb5a58c7
commit
faefaac875
|
@ -234,6 +234,11 @@ bool LockFile::operator ==(const LockFile & other) const
|
||||||
return toJSON() == other.toJSON();
|
return toJSON() == other.toJSON();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool LockFile::operator !=(const LockFile & other) const
|
||||||
|
{
|
||||||
|
return !(*this == other);
|
||||||
|
}
|
||||||
|
|
||||||
InputPath parseInputPath(std::string_view s)
|
InputPath parseInputPath(std::string_view s)
|
||||||
{
|
{
|
||||||
InputPath path;
|
InputPath path;
|
||||||
|
|
|
@ -67,6 +67,9 @@ struct LockFile
|
||||||
std::optional<FlakeRef> isUnlocked() const;
|
std::optional<FlakeRef> isUnlocked() const;
|
||||||
|
|
||||||
bool operator ==(const LockFile & other) const;
|
bool operator ==(const LockFile & other) const;
|
||||||
|
// Needed for old gcc versions that don't syntethise it (like gcc 8.2.2
|
||||||
|
// that is still the default on aarch64-linux)
|
||||||
|
bool operator !=(const LockFile & other) const;
|
||||||
|
|
||||||
std::shared_ptr<Node> findInput(const InputPath & path);
|
std::shared_ptr<Node> findInput(const InputPath & path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue