Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Commit 884946d

Browse files
authored
Merge pull request #822 from apple/sr-7801-swift-4.2
[4.2] [REPL] Set the correct rpath when installing.
2 parents 8e99999 + 90c1be0 commit 884946d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/repl/swift/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ if (LLDB_BUILD_FRAMEWORK)
55
elseif( CMAKE_SYSTEM_NAME MATCHES "Linux" )
66
# Set the correct rpath to locate libswiftCore
77
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-rpath,${CMAKE_BINARY_DIR}/../swift-linux-x86_64/lib${LLVM_LIBDIR_SUFFIX}/swift/linux -Wl,-ldl")
8+
set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/swift/linux:${CMAKE_INSTALL_RPATH}")
89
endif()
910

1011
add_lldb_tool(repl_swift

0 commit comments

Comments
 (0)