diff --git a/SOURCES/D101972-backport.patch b/SOURCES/D101972-backport.patch index c74c9cb..1d6c7b2 100644 --- a/SOURCES/D101972-backport.patch +++ b/SOURCES/D101972-backport.patch @@ -1,17 +1,11 @@ ---- a/llvm/lib/Target/CMakeLists.txt -+++ b/llvm/lib/Target/CMakeLists.txt -@@ -19,14 +19,6 @@ - Support - ) +--- a/llvm/include/llvm/ADT/Any.h ++++ b/llvm/include/llvm/ADT/Any.h +@@ -23,7 +23,7 @@ --# When building shared objects for each target there are some internal APIs --# that are used across shared objects which we can't hide. --if (NOT BUILD_SHARED_LIBS AND NOT APPLE) -- # Set default visibility to hidden, so we don't export all the Target classes -- # in libLLVM.so. -- set(CMAKE_CXX_VISIBILITY_PRESET hidden) --endif() -- - foreach(t ${LLVM_TARGETS_TO_BUILD}) - message(STATUS "Targeting ${t}") - add_subdirectory(${t}) + namespace llvm { + +-class Any { ++class LLVM_EXTERNAL_VISIBILITY Any { + template struct TypeId { static const char Id; }; + + struct StorageBase { diff --git a/SPECS/llvm.spec b/SPECS/llvm.spec index 7a6fdd1..51d3d4f 100644 --- a/SPECS/llvm.spec +++ b/SPECS/llvm.spec @@ -52,7 +52,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} -Release: 6.2%{?dist} +Release: 6.3%{?dist} Summary: The Low Level Virtual Machine License: NCSA @@ -559,6 +559,9 @@ fi %endif %changelog +* Wed May 12 2021 Davide Cavalca - 12.0.0-6.3 +- Update D101972 backport to the latest revision + * Sun May 09 2021 Davide Cavalca - 12.0.0-6.2 - Backport https://reviews.llvm.org/D101972 to fix the test failures