import os

if not 'X86' in config.root.targets:
    config.unsupported = True

if "Leaks" in config.llvm_use_sanitizer:
    suppr = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'suppressions.txt')
    config.environment['LSAN_OPTIONS'] = 'suppressions={}'.format(suppr)

config.suffixes = ['.test', '.cpp', '.m', '.s']

import os

if not 'X86' in config.root.targets:
    config.unsupported = True

if config.llvm_use_sanitizer:
    suppr = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'suppressions.txt')
    config.environment['LSAN_OPTIONS'] = 'suppressions={}'.format(suppr)

config.suffixes = ['.test', '.cpp', '.m', '.s']

Set LSan blacklist whenever sanitizers are enabled.
[dsymutil] Set LSan blacklist whenever sanitizers are enabled.

LSan can be enabled by itself or as part of the address sanitizer.
Rather than checking the enabled sanitizers for both, just set the LSan
env options whenever a sanitizer is enabled.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@342881 91177308-0d34-0410-b5e6-96231b3b80d8
