Сравнение include-what-you-use-0.19 с include-what-you-use-0.20
/usr/portage/dev-util/include-what-you-use/include-what-you-use-0.20.ebuild 2023-10-09 14:52:30.972368387 +0300 | ||
---|---|---|
19 | 19 |
SLOT="0" |
20 | 20 |
KEYWORDS="amd64 ~arm64 ~x86" |
21 | 21 | |
22 |
LLVM_MAX_SLOT=15 |
|
22 |
LLVM_MAX_SLOT=16 |
|
23 | 23 | |
24 | 24 |
RDEPEND=" |
25 | 25 |
sys-devel/clang:${LLVM_MAX_SLOT} |
... | ... | |
68 | 68 |
clang_version=${clang_version#*/*-} # reduce it to ${PV}-${PR} |
69 | 69 |
clang_version=${clang_version%%[_-]*} # main version without beta/pre/patch/revision |
70 | 70 | |
71 |
local -x EXTRA_IWYU_ARGS="-I ${ESYSROOT}/usr/lib/clang/${clang_version}/include" |
|
71 |
local clang_include_dir_candidates=( |
|
72 |
"${ESYSROOT}/usr/lib/clang/${clang_version}/include" |
|
73 |
"${ESYSROOT}/usr/lib/clang/${LLVM_MAX_SLOT}/include" |
|
74 |
) |
|
75 | ||
76 |
local candidate_dir |
|
77 |
for candidate_dir in "${clang_include_dir_candidates[@]}"; do |
|
78 |
if [[ -d "${candidate_dir}" ]]; then |
|
79 |
local clang_include_dir="${candidate_dir}" |
|
80 |
break |
|
81 |
fi |
|
82 |
done |
|
83 | ||
84 |
if [[ ! -v clang_include_dir ]]; then |
|
85 |
die "Could not infer clang include directory. Candidates: ${clang_include_dir_candidates[*]}" |
|
86 |
fi |
|
87 | ||
88 |
local -x EXTRA_IWYU_ARGS="-I ${clang_include_dir}" |
|
72 | 89 |
"${EPYTHON}" run_iwyu_tests.py \ |
73 | 90 |
-- "${BUILD_DIR}"/bin/${PN} \ |
74 | 91 |
|| die "Tests failed with $? (using ${EPYTHON})" |