From 7a2193cd190baf3a396b7d0b2b34f06b380c7a37 Mon Sep 17 00:00:00 2001 From: Jan Patrick Lehr Date: Wed, 18 Mar 2026 15:46:08 +0100 Subject: [PATCH] [Offload] Add CMake alias for CI (#186099) In the pre-merge CI we need a top-level visible target that can be used to build offload, i.e., libomptarget and LLVMOffload. The related PR to include offload into pre-merge CI is here: https://github.com/llvm/llvm-project/pull/174955 --- offload/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/offload/CMakeLists.txt b/offload/CMakeLists.txt index 65733de43d29..bf941da16f4c 100644 --- a/offload/CMakeLists.txt +++ b/offload/CMakeLists.txt @@ -403,3 +403,16 @@ if(OFFLOAD_INCLUDE_TESTS) add_subdirectory(test) add_subdirectory(unittests) endif() + +# Expose a high-level target to build the offloading runtimes. +# This is used in pre-commit CI to run a build of the libraries without requiring +# to invoke the check-* targets. +add_custom_target(offload + COMMENT "Building offloading runtime libraries and plugins" +) +if(TARGET omptarget) + add_dependencies(offload omptarget) +endif() +if(TARGET LLVMOffload) + add_dependencies(offload LLVMOffload) +endif()