From ef4eeb475a6e1e9a7b471ec0e6034774e19544de Mon Sep 17 00:00:00 2001 From: William Moses Date: Sun, 9 Feb 2025 11:42:08 -0600 Subject: [PATCH 1/2] Fix build for gbinarybuilder cc @vchuravy --- llvm/lib/Transforms/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/CMakeLists.txt b/llvm/lib/Transforms/CMakeLists.txt index dda5f6de11e32..c340af4bc4c5c 100644 --- a/llvm/lib/Transforms/CMakeLists.txt +++ b/llvm/lib/Transforms/CMakeLists.txt @@ -5,7 +5,8 @@ add_subdirectory(InstCombine) add_subdirectory(Scalar) add_subdirectory(IPO) add_subdirectory(Vectorize) -add_subdirectory(Hello) +# Broken if disabling tools +# add_subdirectory(Hello) add_subdirectory(ObjCARC) add_subdirectory(Coroutines) add_subdirectory(CFGuard) From dc66ab865f6c5d77c9df9b05bba741d17b46f120 Mon Sep 17 00:00:00 2001 From: Billy Moses Date: Sun, 9 Feb 2025 12:24:31 -0600 Subject: [PATCH 2/2] Fix hidden visibility --- llvm/lib/Target/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/CMakeLists.txt b/llvm/lib/Target/CMakeLists.txt index 2739233f9ccb3..8471ce8f88290 100644 --- a/llvm/lib/Target/CMakeLists.txt +++ b/llvm/lib/Target/CMakeLists.txt @@ -28,7 +28,7 @@ if (NOT BUILD_SHARED_LIBS AND NOT APPLE AND NOT DEFINED CMAKE_CXX_VISIBILITY_PRESET) # Set default visibility to hidden, so we don't export all the Target classes # in libLLVM.so. - set(CMAKE_CXX_VISIBILITY_PRESET hidden) + # set(CMAKE_CXX_VISIBILITY_PRESET hidden) endif() foreach(t ${LLVM_TARGETS_TO_BUILD})