[clang-tools-extra] Don't consider python below LLVM_MINIMUM_PYTHON_VERSION. NFC
This commit is contained in:
parent
14e4d2e564
commit
7f0df31ee3
|
@ -3,6 +3,7 @@
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import re
|
import re
|
||||||
|
import shlex
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
import lit.formats
|
import lit.formats
|
||||||
|
@ -73,16 +74,7 @@ config.environment['LD_LIBRARY_PATH'] = path
|
||||||
if config.clang_tidy_staticanalyzer:
|
if config.clang_tidy_staticanalyzer:
|
||||||
config.available_features.add('static-analyzer')
|
config.available_features.add('static-analyzer')
|
||||||
|
|
||||||
# Get shlex.quote if available (added in 3.3), and fall back to pipes.quote if
|
python_exec = shlex.quote(config.python_executable)
|
||||||
# it's not available.
|
|
||||||
try:
|
|
||||||
import shlex
|
|
||||||
sh_quote = shlex.quote
|
|
||||||
except:
|
|
||||||
import pipes
|
|
||||||
sh_quote = pipes.quote
|
|
||||||
python_exec = sh_quote(config.python_executable)
|
|
||||||
|
|
||||||
check_clang_tidy = os.path.join(
|
check_clang_tidy = os.path.join(
|
||||||
config.test_source_root, "clang-tidy", "check_clang_tidy.py")
|
config.test_source_root, "clang-tidy", "check_clang_tidy.py")
|
||||||
config.substitutions.append(
|
config.substitutions.append(
|
||||||
|
|
Loading…
Reference in a new issue