-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[lldb] add a warning if dirname is not in the PATH
#164494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb] add a warning if dirname is not in the PATH
#164494
Conversation
|
@llvm/pr-subscribers-lldb Author: Charles Zablit (charles-zablit) ChangesThis patch adds a check in lldb's API test CMakeLists file to ensure that Full diff: https://github.com/llvm/llvm-project/pull/164494.diff 1 Files Affected:
diff --git a/lldb/test/API/CMakeLists.txt b/lldb/test/API/CMakeLists.txt
index b1ace6296f46a..df2648d3c3518 100644
--- a/lldb/test/API/CMakeLists.txt
+++ b/lldb/test/API/CMakeLists.txt
@@ -74,6 +74,15 @@ else()
endif()
endif()
+find_program(LLDB_DIRNAME_PATH dirname)
+if(LLDB_DIRNAME_PATH)
+ message(STATUS "Found dirname: ${LLDB_DIRNAME_PATH}")
+else()
+ message(STATUS "Did not find 'dirname'.")
+ message(WARNING
+ "Many LLDB API tests require the 'dirname' tool. Please provide it in Path.")
+endif()
+
if (TARGET clang)
set(LLDB_DEFAULT_TEST_COMPILER "${LLVM_TOOLS_BINARY_DIR}/clang${CMAKE_EXECUTABLE_SUFFIX}")
else()
|
lldb/test/API/CMakeLists.txt
Outdated
| message(WARNING | ||
| "Many LLDB API tests require the 'dirname' tool. Please provide it in Path.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This warning message could be more generic and mention that tests require the coreutils.
Nerixyz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Nerixyz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong button, but LGTM
This patch adds a check in lldb's API test CMakeLists file to ensure that `dirname` is in the PATH, which is not obvious on Windows. --------- Co-authored-by: nerix <[email protected]>
This patch adds a check in lldb's API test CMakeLists file to ensure that `dirname` is in the PATH, which is not obvious on Windows. --------- Co-authored-by: nerix <[email protected]>
This patch adds a check in lldb's API test CMakeLists file to ensure that `dirname` is in the PATH, which is not obvious on Windows. --------- Co-authored-by: nerix <[email protected]>
This patch adds a check in lldb's API test CMakeLists file to ensure that `dirname` is in the PATH, which is not obvious on Windows. --------- Co-authored-by: nerix <[email protected]>
This patch adds a check in lldb's API test CMakeLists file to ensure that
dirnameis in the PATH, which is not obvious on Windows.