From 70427d249f749cc9561fdf414e85de6571134825 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Fri, 7 Apr 2023 21:47:59 +0800 Subject: [PATCH] Install googletest files for clang --- llvm.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 85a7ad8..669e03e 100644 --- a/llvm.spec +++ b/llvm.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 # We are building with clang for faster/lower memory LTO builds. %global toolchain clang @@ -248,6 +248,7 @@ export ASMFLAGS=$CFLAGS \ -DLLVM_INCLUDE_TESTS:BOOL=ON \ -DLLVM_BUILD_TESTS:BOOL=ON \ + -DLLVM_INSTALL_GTEST:BOOL=ON \ -DLLVM_LIT_ARGS=-v \ \ -DLLVM_INCLUDE_EXAMPLES:BOOL=ON \ @@ -508,6 +509,7 @@ fi %if %{without compat_build} %{_libdir}/*.a %exclude %{_libdir}/libLLVMTestingSupport.a +%exclude %{_libdir}/libLLVMTestingAnnotations.a %else %{_libdir}/%{name}/lib/*.a %endif @@ -529,12 +531,18 @@ fi %license LICENSE.TXT %{_datadir}/llvm/src/utils %{_libdir}/libLLVMTestingSupport.a +%{_libdir}/libLLVMTestingAnnotations.a +%{_includedir}/llvm-gtest +%{_includedir}/llvm-gmock %files toolset %license LICENSE.TXT %endif %changelog +* Fri Apr 7 2023 Funda Wang - 16.0.1-2 +- Install googletest files for clang + * Wed Apr 5 2023 Funda Wang - 16.0.1-1 - New version 16.0.1 -- Gitee