Skip to content

Commit 61f94eb

Browse files
authored
[NFC][Offload] Structure/Readability of CMake cache (#123328)
Preparing to add more config options and want to group them all from most-common to project / component specific.
1 parent 7075eee commit 61f94eb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

offload/cmake/caches/AMDGPUBot.cmake

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
# This file is meant for test builds on one basic AMDGPU buildbot only.
1+
# This file is used across all AMDGPU-cmake builders
22

33
# Install directory set to /tmp as this is a bot config
44
set(CMAKE_INSTALL_PREFIX /tmp/llvm.install.test CACHE STRING "")
55

6+
# General settings
7+
set(CMAKE_BUILD_TYPE Release CACHE STRING "")
8+
set(CMAKE_C_COMPILER_LAUNCHER ccache CACHE STRING "")
9+
set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "")
10+
611
set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
712
set(LLVM_ENABLE_RUNTIMES "compiler-rt;openmp;offload" CACHE STRING "")
13+
814
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL "")
915
set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
10-
set(LLVM_LIT_ARGS "-v --show-unsupported --timeout 100 --show-xfail -j 32" CACHE STRING "")
1116
set(LLVM_TARGETS_TO_BUILD "host;AMDGPU" CACHE STRING "")
17+
set(LLVM_LIT_ARGS "-v --show-unsupported --timeout 100 --show-xfail -j 32" CACHE STRING "")
1218

1319
set(CLANG_DEFAULT_LINKER "lld" CACHE STRING "")
14-
15-
set(CMAKE_BUILD_TYPE Release CACHE STRING "")
16-
set(CMAKE_C_COMPILER_LAUNCHER ccache CACHE STRING "")
17-
set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "")

0 commit comments

Comments
 (0)