https://bugzilla.redhat.com/show_bug.cgi?id=2175012
--- Comment #2 from Tom Stellard <tstellar(a)redhat.com> ---
clang_major_ver=$(clang --version | grep version | cut -f3 -d"
" | cut -f1 -d".")
Use the %clang_major_version macro instead. This
is defined in macros.clang
which is part of clang-devel.
for test in ${failed_tests_add_include_argument[@]};do
sed -i "/===\/\//a\/\/ IWYU_ARGS: -I
%{_libdir}/clang/${clang_major_ver}/include/" tests/cxx/$test
done
for test in ${failed_tests_additional_include_argument[@]};do
sed -i "s|-I .|-I . -I %{_libdir}/clang/${clang_major_ver}/include|g"
tests/cxx/$test
done
There is also a %clang_resource_dir amcro you can use here instead.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2175012