diff --git a/clang.spec b/clang.spec index b50015d..5caa86a 100644 --- a/clang.spec +++ b/clang.spec @@ -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