globals.hh: don't use '==' to compare string literals

Saw this in logs, also reported here:

https://github.com/NixOS/nix/commit/8e6108ff71caae180d764ab9e9bff5593724655c#r28707288
This commit is contained in:
Will Dietz
2018-04-23 20:57:05 -05:00
parent 8e6108ff71
commit 8e7d77d494
+1 -1
View File
@@ -296,7 +296,7 @@ public:
"listed in 'trusted-public-keys'."};
Setting<StringSet> extraPlatforms{this,
SYSTEM == "x86_64-linux" ? StringSet{"i686-linux"} : StringSet{},
std::string{SYSTEM} == "x86_64-linux" ? StringSet{"i686-linux"} : StringSet{},
"extra-platforms",
"Additional platforms that can be built on the local system. "
"These may be supported natively (e.g. armv7 on some aarch64 CPUs "