Skip to content

Commit 87db0bf

Browse files
committed
test: ensure that .ileans are loaded in interactive tests
1 parent abea3af commit 87db0bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,9 @@ install(DIRECTORY "${CMAKE_BINARY_DIR}/lib/" DESTINATION lib
797797

798798
# symlink source into expected installation location for go-to-definition, if file system allows it
799799
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/src)
800+
# get rid of all files in `src/lean` that may have been loaded from the cache
801+
# (at the time of writing this, this is the case for some lake test .c files)
802+
file(REMOVE_RECURSE ${CMAKE_BINARY_DIR}/src/lean)
800803
if(${STAGE} EQUAL 0)
801804
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/../../src ${CMAKE_BINARY_DIR}/src/lean RESULT _IGNORE_RES SYMBOLIC)
802805
else()

0 commit comments

Comments
 (0)