Skip to content

Commit 8e7d77d

Browse files
committed
globals.hh: don't use '==' to compare string literals
Saw this in logs, also reported here: NixOS@8e6108f#r28707288
1 parent 8e6108f commit 8e7d77d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstore/globals.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public:
296296
"listed in 'trusted-public-keys'."};
297297

298298
Setting<StringSet> extraPlatforms{this,
299-
SYSTEM == "x86_64-linux" ? StringSet{"i686-linux"} : StringSet{},
299+
std::string{SYSTEM} == "x86_64-linux" ? StringSet{"i686-linux"} : StringSet{},
300300
"extra-platforms",
301301
"Additional platforms that can be built on the local system. "
302302
"These may be supported natively (e.g. armv7 on some aarch64 CPUs "

0 commit comments

Comments
 (0)