Lines Matching full:config
10 def get_required_attr(config, attr_name):
11 attr_value = getattr(config, attr_name, None)
21 # Setup config name.
22 config.name = "MemProfiler" + config.name_suffix
25 default_memprof_opts = list(config.default_sanitizer_opts)
29 config.environment["MEMPROF_OPTIONS"] = default_memprof_opts_str
31 config.substitutions.append(
36 config.test_source_root = os.path.dirname(__file__)
42 target_cflags = [get_required_attr(config, "target_cflags")]
43 target_cxxflags = config.cxx_mode_flags + target_cflags
51 + config.debug_info_flags
54 clang_memprof_static_cxxflags = config.cxx_mode_flags + clang_memprof_static_cflags
57 if config.memprof_dynamic:
59 config.available_features.add("memprof-dynamic-runtime")
61 config.available_features.add("memprof-static-runtime")
67 return " " + " ".join([config.clang] + compile_flags) + " "
70 config.substitutions.append(("%clang ", build_invocation(target_cflags)))
71 config.substitutions.append(("%clangxx ", build_invocation(target_cxxflags)))
72 config.substitutions.append(("%clang_memprof ", build_invocation(clang_memprof_cflags)))
73 config.substitutions.append(
76 if config.memprof_dynamic:
78 config.compiler_rt_libdir,
79 "libclang_rt.memprof{}.so".format(config.target_suffix),
81 config.substitutions.append(("%shared_libmemprof", shared_libmemprof_path))
82 config.substitutions.append(
85 config.substitutions.append(
89 config.substitutions.append(("%libdl", libdl_flag))
91 config.available_features.add("memprof-" + config.bits + "-bits")
93 config.available_features.add("fast-unwinder-works")
97 (config.compiler_rt_libdir, config.environment.get("LD_LIBRARY_PATH", ""))
99 config.environment["LD_LIBRARY_PATH"] = new_ld_library_path
102 config.suffixes = [".c", ".cpp"]
104 config.substitutions.append(("%fPIC", "-fPIC"))
105 config.substitutions.append(("%fPIE", "-fPIE"))
106 config.substitutions.append(("%pie", "-pie"))
109 if config.host_os not in ["Linux"]:
110 config.unsupported = True
112 if not config.parallelism_group:
113 config.parallelism_group = "shadow-memory"