Lines Matching full:config
11 def get_required_attr(config, attr_name):
12 attr_value = getattr(config, attr_name, None)
23 config.test_source_root = os.path.dirname(__file__)
26 lsan_lit_test_mode = get_required_attr(config, "lsan_lit_test_mode")
27 target_arch = getattr(config, "target_arch", None)
30 config.name = "LeakSanitizer-Standalone"
32 config.available_features.add("lsan-standalone")
34 config.name = "LeakSanitizer-AddressSanitizer"
36 config.available_features.add("asan")
37 if config.host_os == "NetBSD":
38 config.substitutions.insert(0, ("%run", config.netbsd_noaslr_prefix))
40 config.name = "LeakSanitizer-HWAddressSanitizer"
44 config.available_features.add("hwasan")
45 if config.host_os == "NetBSD":
46 config.substitutions.insert(0, ("%run", config.netbsd_noaslr_prefix))
49 config.name += config.name_suffix
52 default_common_opts_str = ":".join(list(config.default_sanitizer_opts))
54 if config.host_os == "Darwin":
62 config.environment["LSAN_OPTIONS"] = default_lsan_opts
64 config.substitutions.append(
69 config.available_features.add("strace")
71 clang_cflags = ["-O0", config.target_cflags] + config.debug_info_flags
72 if config.android:
74 clang_cxxflags = config.cxx_mode_flags + clang_cflags
75 lsan_incdir = config.test_source_root + "/../"
79 config.clang_cflags = clang_cflags
80 config.clang_cxxflags = clang_cxxflags
84 return " " + " ".join([config.clang] + compile_flags) + " "
87 config.substitutions.append(("%clang ", build_invocation(clang_cflags)))
88 config.substitutions.append(("%clangxx ", build_invocation(clang_cxxflags)))
89 config.substitutions.append(("%clang_lsan ", build_invocation(clang_lsan_cflags)))
90 config.substitutions.append(("%clangxx_lsan ", build_invocation(clang_lsan_cxxflags)))
91 config.substitutions.append(("%clang_hwasan ", build_invocation(clang_lsan_cflags)))
92 config.substitutions.append(("%clangxx_hwasan ", build_invocation(clang_lsan_cxxflags)))
98 config.android
99 and config.target_arch in ["x86_64", "i386", "aarch64"]
100 and "android-thread-properties-api" in config.available_features
103 (not config.android)
104 and config.host_os == "Linux"
105 and config.host_arch
120 supported_darwin = config.host_os == "Darwin" and config.target_arch in ["x86_64"]
121 supported_netbsd = config.host_os == "NetBSD" and config.target_arch in [
126 config.unsupported = True
129 if re.search("mthumb", config.target_cflags) is not None:
130 config.unsupported = True
134 if "hwasan" in config.available_features and not config.has_lld:
135 config.unsupported = True
137 config.suffixes = [".c", ".cpp", ".mm"]