1 if not "PowerPC" in config.root.targets:
2 config.unsupported = True
6 config.suffixes.add(".py")
8 def get_revision(repo_path):
9 cmd = ['git', '-C', repo_path, 'rev-parse', 'HEAD']
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)
16 if config.have_vc_rev:
17 if config.force_vc_rev:
18 git_revision = config.force_vc_rev
20 git_revision = get_revision(config.llvm_src_root)
22 config.substitutions.append(("git-revision", git_revision))
23 config.available_features.add("vc-rev-enabled")