diff --git a/swift-for-tensorflow-patches/lldb-reflection-fix.patch b/swift-for-tensorflow-patches/lldb-reflection-fix.patch new file mode 100644 index 0000000..f0483db --- /dev/null +++ b/swift-for-tensorflow-patches/lldb-reflection-fix.patch @@ -0,0 +1,26 @@ +From 2677b85040b939353b8b529a4a0b1cfdfad004ed Mon Sep 17 00:00:00 2001 +From: Michael Munday +Date: Mon, 8 Oct 2018 09:48:40 -0400 +Subject: [PATCH] [CMake] Fix reflection lib name on non-x86_64 Linux + platforms. + +Remove the hardcoded instance of 'x86_64' and query the platform's +processor name instead. +--- + source/Target/CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/source/Target/CMakeLists.txt b/source/Target/CMakeLists.txt +index f6bbd6f8ce8..711b4a48df7 100644 +--- a/source/Target/CMakeLists.txt ++++ b/source/Target/CMakeLists.txt +@@ -3,7 +3,8 @@ include_directories(../Plugins/Process/Utility) + set(REFLECTION_LIB "swiftReflection") + + if(CMAKE_SYSTEM_NAME MATCHES "Linux") +- set(REFLECTION_LIB "swiftReflection-linux-x86_64") ++ # CMAKE_SYSTEM_PROCESSOR is equivalent to `uname -p` on Linux. ++ set(REFLECTION_LIB "swiftReflection-linux-${CMAKE_SYSTEM_PROCESSOR}") + endif() + + if(CMAKE_SYSTEM_NAME MATCHES "Darwin")