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

Commit

Permalink
Merge pull request #822 from apple/sr-7801-swift-4.2
Browse files Browse the repository at this point in the history
[4.2] [REPL] Set the correct rpath when installing.
  • Loading branch information
shahmishal authored Aug 14, 2018
2 parents 8e99999 + 90c1be0 commit 884946d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/repl/swift/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (LLDB_BUILD_FRAMEWORK)
elseif( CMAKE_SYSTEM_NAME MATCHES "Linux" )
# Set the correct rpath to locate libswiftCore
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-rpath,${CMAKE_BINARY_DIR}/../swift-linux-x86_64/lib${LLVM_LIBDIR_SUFFIX}/swift/linux -Wl,-ldl")
set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/swift/linux:${CMAKE_INSTALL_RPATH}")
endif()

add_lldb_tool(repl_swift
Expand Down

0 comments on commit 884946d

Please sign in to comment.