"vscode:/vscode.git/clone" did not exist on "b5d3a17805fe0ed2ccde463412ae1fd206c4df21"
Commit 4eafafbd authored by Dan Albert's avatar Dan Albert
Browse files

Fix detection of GTEST_HAS_CLONE for Android.

This was not in Gingerbread for anything but ARM (even though the
libs were hacked to lie about it being available in gingerbread).
parent ff07a5de
...@@ -754,8 +754,12 @@ using ::std::tuple_size; ...@@ -754,8 +754,12 @@ using ::std::tuple_size;
# if GTEST_OS_LINUX && !defined(__ia64__) # if GTEST_OS_LINUX && !defined(__ia64__)
# if GTEST_OS_LINUX_ANDROID # if GTEST_OS_LINUX_ANDROID
// On Android, clone() is only available on ARM starting with Gingerbread. // On Android, clone() became available at different API levels for each 32-bit
# if defined(__arm__) && __ANDROID_API__ >= 9 // architecture.
# if defined(__LP64__) || \
(defined(__arm__) && __ANDROID_API__ >= 9) || \
(defined(__mips__) && __ANDROID_API__ >= 12) || \
(defined(__i386__) && __ANDROID_API__ >= 17)
# define GTEST_HAS_CLONE 1 # define GTEST_HAS_CLONE 1
# else # else
# define GTEST_HAS_CLONE 0 # define GTEST_HAS_CLONE 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment