mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Explicitly select c++_static STL, default Android STL is totally broken
This commit is contained in:
@@ -13,6 +13,11 @@ if(BUILD_ANDROID)
|
||||
if(NOT ANDROID_PLATFORM)
|
||||
set(ANDROID_PLATFORM "android-21")
|
||||
endif()
|
||||
|
||||
# default to libc++_static as the other options can cause crashes
|
||||
if(NOT ANDROID_STL)
|
||||
set(ANDROID_STL "c++_static")
|
||||
endif()
|
||||
|
||||
# Choose clang if the NDK has both gcc and clang, since gcc sometimes fails
|
||||
set(CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION "clang")
|
||||
|
||||
Reference in New Issue
Block a user