Skip to content

Commit ec95379

Browse files
committed
[lldb][test] Clear pexpect found var before checking again
If you run cmake without pexpect installed it errors as expected. However, if you just `pip install pexpect` and cmake again it still doesn't find it because it cached the result of the search. Unset the result before looking for pexpect. So that this works as expected: cmake ... pip3 install pexpect cmake ...
1 parent b1c8b9f commit ec95379

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ endif()
3030
# LLDB tree. However, we delay the deletion of it from the tree in case
3131
# users/buildbots don't have the package yet and need some time to install it.
3232
if (NOT LLDB_TEST_USE_VENDOR_PACKAGES)
33+
unset(PY_pexpect_FOUND CACHE)
3334
lldb_find_python_module(pexpect)
3435
if (NOT PY_pexpect_FOUND)
3536
message(FATAL_ERROR

0 commit comments

Comments
 (0)