[Clang] replace 'bitfield' with 'bit-field' for consistency (#117881)
[llvm-project.git] / llvm / test / CodeGen / PowerPC / lit.local.cfg
blobe56ce48eff401befddd47b7e031827fbeed3205f
1 if not "PowerPC" in config.root.targets:
2     config.unsupported = True
4 import subprocess
6 config.suffixes.add(".py")
8 def get_revision(repo_path):
9     cmd = ['git', '-C', repo_path, 'rev-parse', 'HEAD']
10     try:
11         return subprocess.run(cmd, stdout=subprocess.PIPE, check=True).stdout.decode()
12     except Exception as e:
13         print("An error occurred retrieving the git revision:", e)
14         return None
16 if config.have_vc_rev:
17     if config.force_vc_rev:
18         git_revision = config.force_vc_rev
19     else:
20         git_revision = get_revision(config.llvm_src_root)
21     if git_revision:
22         config.substitutions.append(("git-revision", git_revision))
23         config.available_features.add("vc-rev-enabled")