[Lldb-commits] [PATCH] D58339: Changes for running LLDB test suite for Swift on PowerPC64LE
Sarvesh Tamba via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Feb 17 23:10:55 PST 2019
sarveshtamba created this revision.
sarveshtamba added a project: LLDB.
Herald added subscribers: lldb-commits, jsji, mgorny, nemanjai.
The attached changes are required for running LLDB test suite related test cases for Apple Swift 5 on PowerPC64LE.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D58339
Files:
source/Target/SwiftLanguageRuntime.cpp
tools/repl/swift/CMakeLists.txt
Index: tools/repl/swift/CMakeLists.txt
===================================================================
--- tools/repl/swift/CMakeLists.txt
+++ tools/repl/swift/CMakeLists.txt
@@ -4,8 +4,13 @@
-Wl,${CMAKE_BINARY_DIR}/${LLDB_FRAMEWORK_INSTALL_DIR}/${LLDB_FRAMEWORK_RESOURCE_DIR}/Swift/macosx")
elseif( CMAKE_SYSTEM_NAME MATCHES "Linux" )
# Set the correct rpath to locate libswiftCore
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} \
- -Wl,-rpath,${CMAKE_BINARY_DIR}/../swift-linux-x86_64/lib${LLVM_LIBDIR_SUFFIX}/swift/linux -Wl,-ldl")
+ if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "ppc64le")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} \
+ -Wl,-rpath,${CMAKE_BINARY_DIR}/../swift-linux-powerpc64le/lib${LLVM_LIBDIR_SUFFIX}/swift/linux/powerpc64le -Wl,-ldl")
+ else()
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} \
+ -Wl,-rpath,${CMAKE_BINARY_DIR}/../swift-linux-x86_64/lib${LLVM_LIBDIR_SUFFIX}/swift/linux -Wl,-ldl")
+ endif()
set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/swift/linux:${CMAKE_INSTALL_RPATH}")
endif()
Index: source/Target/SwiftLanguageRuntime.cpp
===================================================================
--- source/Target/SwiftLanguageRuntime.cpp
+++ source/Target/SwiftLanguageRuntime.cpp
@@ -2678,6 +2678,9 @@
case llvm::Triple::ArchType::systemz:
addr &= ~SWIFT_ABI_S390X_SWIFT_SPARE_BITS_MASK;
break;
+ case llvm::Triple::ArchType::ppc64le:
+ addr &= ~SWIFT_ABI_POWERPC64_SWIFT_SPARE_BITS_MASK;
+ break;
default:
break;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58339.187192.patch
Type: text/x-patch
Size: 1575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190218/30e89b42/attachment.bin>
More information about the lldb-commits
mailing list