Use CMake's Android generators to crosscompile
This commit is contained in:
committed by
Alexander Harkness
parent
c59ff9b431
commit
8c6d0b51c7
@@ -7,7 +7,7 @@
|
||||
#include "StackTrace.h"
|
||||
#ifdef _WIN32
|
||||
#include "../StackWalker.h"
|
||||
#else
|
||||
#elif !defined(ANDROID) // The Android NDK has no execinfo header
|
||||
#ifdef __GLIBC__
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
@@ -32,7 +32,7 @@ void PrintStackTrace(void)
|
||||
}
|
||||
} sw;
|
||||
sw.ShowCallstack();
|
||||
#else
|
||||
#elif !defined(ANDROID)
|
||||
#ifdef __GLIBC__
|
||||
// Use the backtrace() function to get and output the stackTrace:
|
||||
// Code adapted from https://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes
|
||||
|
||||
Reference in New Issue
Block a user