[Lldb-commits] [lldb] r345569 - Utility: fix cross-compilation from Linux to Windows

Saleem Abdulrasool via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 29 23:29:28 PDT 2018


Author: compnerd
Date: Mon Oct 29 23:29:28 2018
New Revision: 345569

URL: http://llvm.org/viewvc/llvm-project?rev=345569&view=rev
Log:
Utility: fix cross-compilation from Linux to Windows

Only attempt to link against Backtrace if it is found.  Without this,
trying to cross-compile to Windows would try to link against
"Backtrace_LIBRARY-NOTFOUND.lib".

Modified:
    lldb/trunk/source/Utility/CMakeLists.txt

Modified: lldb/trunk/source/Utility/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/CMakeLists.txt?rev=345569&r1=345568&r2=345569&view=diff
==============================================================================
--- lldb/trunk/source/Utility/CMakeLists.txt (original)
+++ lldb/trunk/source/Utility/CMakeLists.txt Mon Oct 29 23:29:28 2018
@@ -22,7 +22,9 @@ if (NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB )
     list(APPEND LLDB_SYSTEM_LIBS atomic)
 endif()
 
-list(APPEND LLDB_SYSTEM_LIBS ${Backtrace_LIBRARY})
+if(Backtrace_FOUND)
+  list(APPEND LLDB_SYSTEM_LIBS ${Backtrace_LIBRARY})
+endif()
 
 if (NOT LLDB_DISABLE_PYTHON AND NOT LLVM_BUILD_STATIC)
   list(APPEND LLDB_SYSTEM_LIBS ${PYTHON_LIBRARIES})




More information about the lldb-commits mailing list