diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -124,7 +124,7 @@ endif() pythonize_bool(ANDROID) -set(ANDROID_NDK_VERSION 18 +set(ANDROID_NDK_VERSION 21 CACHE STRING "Set this to the Android NDK version that you are using") set(COMPILER_RT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py --- a/compiler-rt/test/lit.common.cfg.py +++ b/compiler-rt/test/lit.common.cfg.py @@ -71,6 +71,8 @@ # just contains a handful of ABI functions", which makes most C++ code fail # to link. In r19 and later we just use the default which is libc++. config.cxx_mode_flags.append('-stdlib=libstdc++') + else + config.cxx_mode_flags.append('-stdlib=libc++') config.environment = dict(os.environ)