diff options
author | 2018-01-05 11:54:42 -0800 | |
---|---|---|
committer | 2018-01-05 11:58:52 -0800 | |
commit | ef7854f8a05defe699d5dc912068b9d4421d7495 (patch) | |
tree | b927e38e39812dba709313895a166fe24368b6be | |
parent | 82a0fcdf27c49b4d6574c718f5cd00641bbff989 (diff) |
Edit the macros to avoid trying to output stacktraces on mobile platforms.
PiperOrigin-RevId: 180956594
-rw-r--r-- | tensorflow/core/platform/default/stacktrace.h | 3 | ||||
-rw-r--r-- | tensorflow/core/platform/stacktrace_handler.cc | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/core/platform/default/stacktrace.h b/tensorflow/core/platform/default/stacktrace.h index 11ac21f229..436716d482 100644 --- a/tensorflow/core/platform/default/stacktrace.h +++ b/tensorflow/core/platform/default/stacktrace.h @@ -17,7 +17,8 @@ limitations under the License. #define TENSORFLOW_CORE_PLATFORM_DEFAULT_STACKTRACE_H_ #include "tensorflow/core/platform/platform.h" -#if defined(PLATFORM_POSIX) && (defined(__clang__) || defined(__GNUC__)) +#if !defined(IS_MOBILE_PLATFORM) && defined(PLATFORM_POSIX) && \ + (defined(__clang__) || defined(__GNUC__)) #define TF_GENERATE_BACKTRACE #endif diff --git a/tensorflow/core/platform/stacktrace_handler.cc b/tensorflow/core/platform/stacktrace_handler.cc index 12dd4e5e87..ff31c97be0 100644 --- a/tensorflow/core/platform/stacktrace_handler.cc +++ b/tensorflow/core/platform/stacktrace_handler.cc @@ -15,8 +15,8 @@ limitations under the License. #include "tensorflow/core/platform/platform.h" -#if !defined(PLATFORM_GOOGLE) && defined(PLATFORM_POSIX) && \ - (defined(__clang__) || defined(__GNUC__)) +#if !defined(PLATFORM_GOOGLE) && !defined(IS_MOBILE_PLATFORM) && \ + defined(PLATFORM_POSIX) && (defined(__clang__) || defined(__GNUC__)) #define TF_GENERATE_STACKTRACE #endif |