[Lldb-commits] [lldb] r244343 - Update to D11825.
Chaoren Lin via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 7 11:54:03 PDT 2015
Author: chaoren
Date: Fri Aug 7 13:54:02 2015
New Revision: 244343
URL: http://llvm.org/viewvc/llvm-project?rev=244343&view=rev
Log:
Update to D11825.
Summary:
Adding `-latomic` to `ANDROID_LINKER_FLAGS` doesn't actually work.
Adding `atomic` to `LLDB_SYSTEM_LIBS` does.
Related: D11831.
Reviewers: Andrzej, ovyalov
Subscribers: tberghammer, danalbert, srhines, lldb-commits
Differential Revision: http://reviews.llvm.org/D11840
Modified:
lldb/trunk/cmake/platforms/Android.cmake
Modified: lldb/trunk/cmake/platforms/Android.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/platforms/Android.cmake?rev=244343&r1=244342&r2=244343&view=diff
==============================================================================
--- lldb/trunk/cmake/platforms/Android.cmake (original)
+++ lldb/trunk/cmake/platforms/Android.cmake Fri Aug 7 13:54:02 2015
@@ -109,7 +109,11 @@ elseif( ANDROID_ABI STREQUAL "armeabi" )
endif()
elseif( ANDROID_ABI STREQUAL "mips" )
# http://b.android.com/182094
- set( ANDROID_LINKER_FLAGS "${ANDROID_LINKER_FLAGS} -latomic" )
+ list( FIND LLDB_SYSTEM_LIBS atomic index )
+ if( index EQUAL -1 )
+ list( APPEND LLDB_SYSTEM_LIBS atomic )
+ set( LLDB_SYSTEM_LIBS ${LLDB_SYSTEM_LIBS} CACHE INTERNAL "" FORCE )
+ endif()
endif()
if( NOT LLVM_BUILD_STATIC )
More information about the lldb-commits
mailing list