Lines Matching +full:- +full:- +full:config
1 # -*- Python -*-
5 def get_required_attr(config, attr_name):
6 attr_value = getattr(config, attr_name, None)
14 # Setup config name.
15 config.name = 'Profile-' + config.target_arch
18 config.test_source_root = os.path.dirname(__file__)
21 if hasattr(config, 'profile_lit_binary_dir') and \
22 config.profile_lit_binary_dir is not None:
23 config.test_exec_root = os.path.join(config.profile_lit_binary_dir, config.name)
26 # magic to re-execute from the build tree.
27 if config.test_exec_root is None:
33 lit_config.load_config(config, site_cfg)
36 if config.host_os in ['Linux']:
37 extra_linkflags = ["-ldl"]
42 config.suffixes = ['.c', '.cc', '.cpp', '.m', '.mm', '.ll', '.test']
45 config.excludes = ['Inputs']
48 target_cflags=[get_required_attr(config, "target_cflags")]
50 clang_cxxflags = config.cxx_mode_flags + clang_cflags
53 return " " + " ".join([config.clang] + compile_flags) + " "
56 config.substitutions.append( ("%clang ", build_invocation(clang_cflags)) )
57 config.substitutions.append( ("%clangxx ", build_invocation(clang_cxxflags)) )
58 config.substitutions.append( ("%clang_profgen ", build_invocation(clang_cflags) + " -fprofile-instr…
59 config.substitutions.append( ("%clang_profgen=", build_invocation(clang_cflags) + " -fprofile-instr…
60 config.substitutions.append( ("%clang_profuse=", build_invocation(clang_cflags) + " -fprofile-instr…
61 config.substitutions.append( ("%clangxx_profgen ", build_invocation(clang_cxxflags) + " -fprofile-i…
62 config.substitutions.append( ("%clangxx_profuse=", build_invocation(clang_cxxflags) + " -fprofile-i…
63 config.substitutions.append( ("%clang_profgen_gcc=", build_invocation(clang_cflags) + " -fprofile-g…
64 config.substitutions.append( ("%clang_profuse_gcc=", build_invocation(clang_cflags) + " -fprofile-u…
66 if config.host_os not in ['Darwin', 'FreeBSD', 'Linux']:
67 config.unsupported = True
69 if config.target_arch in ['armv7l']:
70 config.unsupported = True