Lines Matching refs:config
10 def get_required_attr(config, attr_name): argument
11 attr_value = getattr(config, attr_name, None)
20 config.test_source_root = os.path.dirname(__file__)
23 lsan_lit_test_mode = get_required_attr(config, 'lsan_lit_test_mode')
26 config.name = "LeakSanitizer-Standalone"
29 config.name = "LeakSanitizer-AddressSanitizer"
31 config.available_features.add('asan')
32 if config.host_os == 'NetBSD':
33 config.substitutions.insert(0, ('%run', config.netbsd_noaslr_prefix))
36 config.name += config.name_suffix
39 default_common_opts_str = ':'.join(list(config.default_sanitizer_opts))
41 if config.host_os == 'Darwin':
49 config.environment['LSAN_OPTIONS'] = default_lsan_opts
51 config.substitutions.append(('%env_lsan_opts=',
55 config.available_features.add('strace')
57 clang_cflags = ["-O0", config.target_cflags] + config.debug_info_flags
58 if config.android:
60 clang_cxxflags = config.cxx_mode_flags + clang_cflags
61 lsan_incdir = config.test_source_root + "/../"
65 config.clang_cflags = clang_cflags
66 config.clang_cxxflags = clang_cxxflags
69 return " " + " ".join([config.clang] + compile_flags) + " "
71 config.substitutions.append( ("%clang ", build_invocation(clang_cflags)) )
72 config.substitutions.append( ("%clangxx ", build_invocation(clang_cxxflags)) )
73 config.substitutions.append( ("%clang_lsan ", build_invocation(clang_lsan_cflags)) )
74 config.substitutions.append( ("%clangxx_lsan ", build_invocation(clang_lsan_cxxflags)) )
78 …pported_android = config.android and config.target_arch in ['x86_64', 'i386', 'aarch64'] and 'andr…
79 supported_linux = (not config.android) and config.host_os == 'Linux' and config.host_arch in ['x86_…
80 supported_darwin = config.host_os == 'Darwin' and config.target_arch in ['x86_64']
81 supported_netbsd = config.host_os == 'NetBSD' and config.target_arch in ['x86_64', 'i386']
83 config.unsupported = True
86 if re.search('mthumb', config.target_cflags) is not None:
87 config.unsupported = True
89 config.suffixes = ['.c', '.cpp', '.mm']