Build test deps separately to avoid LD_LIBRARY_PATH interference
Otherwise invocations of host clang will use the newly built
libraries, which will use a non-existent resource directory, and
thus cause headers like stddef.h not to be found.
See here for the equivalent patch in Fedora: 71aa74debd
Resolves: rhbz#2118567
This commit is contained in:
parent
ae2f1ded2e
commit
63f30e14dc
@ -534,6 +534,10 @@ sed -i -e "s/'ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH'/'ASAN_SYMBOLIZER_PAT
|
||||
|
||||
%if %{without compat_build}
|
||||
%if %{with check}
|
||||
# Build test dependencies separately, to prevent invocations of host clang from being affected
|
||||
# by LD_LIBRARY_PATH below.
|
||||
%cmake_build --target clang-test-depends \
|
||||
ExtraToolsUnitTests ClangdUnitTests ClangIncludeCleanerUnitTests ClangPseudoUnitTests
|
||||
|
||||
%if %{with bundle_compat_lib}
|
||||
# Move the compat -cpp.so out of the way so it's not picked up
|
||||
|
Loading…
Reference in New Issue
Block a user