[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / Other / ChangePrinters / lit.local.cfg
blobb0b9f3e385dc0cba9656c3d29b6a9bf04f5f2e6b
1 import os
2 import subprocess
5 def have_needed_diff_support():
6     if not os.path.exists("/usr/bin/diff"):
7         return False
9     ld_cmd = subprocess.Popen(
10         ["/usr/bin/diff", "--help"],
11         stdout=subprocess.PIPE,
12         stderr=subprocess.STDOUT,
13         env={"LANG": "C"},
14     )
15     ld_out = ld_cmd.stdout.read().decode()
16     ld_cmd.wait()
18     return "-line-format" in ld_out
21 if not have_needed_diff_support():
22     config.unsupported = True