[llvm] [Offload] Enable shared-libs; compiler-rt as default RTLIB (PR #123568)

Jan Patrick Lehr via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 00:51:57 PST 2025


https://github.com/jplehr created https://github.com/llvm/llvm-project/pull/123568

This is the next step to move the CMake cache file builder closer to the build configuration we care about downstream.

>From cdf257b9ff5c2045580a353e28eb9b133c136f51 Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Mon, 20 Jan 2025 02:48:49 -0600
Subject: [PATCH] [Offload] Enable shared-libs; compiler-rt as default RTLIB

---
 offload/cmake/caches/AMDGPUBot.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/offload/cmake/caches/AMDGPUBot.cmake b/offload/cmake/caches/AMDGPUBot.cmake
index 69bef91b2ce49e..405abcc28f98d6 100644
--- a/offload/cmake/caches/AMDGPUBot.cmake
+++ b/offload/cmake/caches/AMDGPUBot.cmake
@@ -5,6 +5,7 @@ set(CMAKE_INSTALL_PREFIX /tmp/llvm.install.test CACHE STRING "")
 
 # General settings
 set(CMAKE_BUILD_TYPE Release CACHE STRING "")
+set(BUILD_SHARED_LIBS ON CACHE BOOL "")
 set(CMAKE_C_COMPILER_LAUNCHER ccache CACHE STRING "")
 set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "")
 
@@ -17,3 +18,4 @@ set(LLVM_TARGETS_TO_BUILD "host;AMDGPU" CACHE STRING "")
 set(LLVM_LIT_ARGS "-v --show-unsupported --timeout 100 --show-xfail -j 32" CACHE STRING "")
 
 set(CLANG_DEFAULT_LINKER "lld" CACHE STRING "")
+set(CLANG_DEFAULT_RTLIB "compiler-rt" STRING "")



More information about the llvm-commits mailing list