From 4a44e4b192db0bb38d3eb7ff20c767e2c747d745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 6 Dec 2024 18:21:12 +0000 Subject: [PATCH] [offload] Remove bogus offload-tblgen check for standalone build (#119004) fd3907ccb583df99e9c19d2fe84e4e7c52d75de9 introduced a check for system offload-tblgen executable when doing a standalone build. This check is bogus, since offload-tblgen is built as part of offload and not some other preinstalled component. The path is also overwritten below, so the check only causes tests to be disabled unnecessarily. --- offload/cmake/OpenMPTesting.cmake | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/offload/cmake/OpenMPTesting.cmake b/offload/cmake/OpenMPTesting.cmake index ff6001c4539f..8e955ff39927 100644 --- a/offload/cmake/OpenMPTesting.cmake +++ b/offload/cmake/OpenMPTesting.cmake @@ -37,17 +37,6 @@ function(find_standalone_test_dependencies) return() endif() - find_program(OFFLOAD_TBLGEN_EXECUTABLE - NAMES offload-tblgen - PATHS ${OPENMP_LLVM_TOOLS_DIR}) - if (NOT OFFLOAD_TBLGEN_EXECUTABLE) - message(STATUS "Cannot find 'offload-tblgen'.") - message(STATUS "Please put 'not' in your PATH, set OFFLOAD_TBLGEN_EXECUTABLE to its full path, or point OPENMP_LLVM_TOOLS_DIR to its directory.") - message(WARNING "The check targets will not be available!") - set(ENABLE_CHECK_TARGETS FALSE PARENT_SCOPE) - return() - endif() - find_program(OPENMP_NOT_EXECUTABLE NAMES not PATHS ${OPENMP_LLVM_TOOLS_DIR})