Skip to content

Commit 4a44e4b

Browse files
authored
[offload] Remove bogus offload-tblgen check for standalone build (#119004)
fd3907c 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.
1 parent e73ec1a commit 4a44e4b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

offload/cmake/OpenMPTesting.cmake

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ function(find_standalone_test_dependencies)
3737
return()
3838
endif()
3939

40-
find_program(OFFLOAD_TBLGEN_EXECUTABLE
41-
NAMES offload-tblgen
42-
PATHS ${OPENMP_LLVM_TOOLS_DIR})
43-
if (NOT OFFLOAD_TBLGEN_EXECUTABLE)
44-
message(STATUS "Cannot find 'offload-tblgen'.")
45-
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.")
46-
message(WARNING "The check targets will not be available!")
47-
set(ENABLE_CHECK_TARGETS FALSE PARENT_SCOPE)
48-
return()
49-
endif()
50-
5140
find_program(OPENMP_NOT_EXECUTABLE
5241
NAMES not
5342
PATHS ${OPENMP_LLVM_TOOLS_DIR})

0 commit comments

Comments
 (0)