[lsan] Fix warnings lit config
authorVitaly Buka <vitalybuka@google.com>
Wed, 6 May 2020 05:42:14 +0000 (22:42 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 6 May 2020 05:42:14 +0000 (22:42 -0700)
compiler-rt/test/lsan/lit.common.cfg.py

index e1e496b..208d9f9 100644 (file)
@@ -70,9 +70,9 @@ config.substitutions.append( ("%clang_lsan ", build_invocation(clang_lsan_cflags
 config.substitutions.append( ("%clangxx_lsan ", build_invocation(clang_lsan_cxxflags)) )
 
 # LeakSanitizer tests are currently supported on x86-64 Linux, PowerPC64 Linux, arm Linux, mips64 Linux, and x86_64 Darwin.
-supported_linux = config.host_os is 'Linux' and config.host_arch in ['x86_64', 'ppc64', 'ppc64le', 'mips64', 'arm', 'armhf', 'armv7l']
-supported_darwin = config.host_os is 'Darwin' and config.target_arch is 'x86_64'
-supported_netbsd = config.host_os is 'NetBSD' and config.target_arch in ['x86_64', 'i386']
+supported_linux = config.host_os == 'Linux' and config.host_arch in ['x86_64', 'ppc64', 'ppc64le', 'mips64', 'arm', 'armhf', 'armv7l']
+supported_darwin = config.host_os == 'Darwin' and config.target_arch in ['x86_64']
+supported_netbsd = config.host_os == 'NetBSD' and config.target_arch in ['x86_64', 'i386']
 if not (supported_linux or supported_darwin or supported_netbsd):
   config.unsupported = True