Skip to content

Commit 13cdc22

Browse files
[lldb] add a warning if dirname is not in the PATH
1 parent 4e53067 commit 13cdc22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lldb/test/API/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ else()
7474
endif()
7575
endif()
7676

77+
find_program(LLDB_DIRNAME_PATH dirname)
78+
if(LLDB_DIRNAME_PATH)
79+
message(STATUS "Found dirname: ${LLDB_DIRNAME_PATH}")
80+
else()
81+
message(STATUS "Did not find 'dirname'.")
82+
message(WARNING
83+
"Many LLDB API tests require the 'dirname' tool. Please provide it in Path.")
84+
endif()
85+
7786
if (TARGET clang)
7887
set(LLDB_DEFAULT_TEST_COMPILER "${LLVM_TOOLS_BINARY_DIR}/clang${CMAKE_EXECUTABLE_SUFFIX}")
7988
else()

0 commit comments

Comments
 (0)