From cc532f09c1ffd7d97635d5ece3ef7722a3cba9be Mon Sep 17 00:00:00 2001 From: Mihai Maruseac Date: Fri, 24 Apr 2020 20:52:23 -0700 Subject: [PATCH] Fix minimal logging build for macos PiperOrigin-RevId: 308374825 Change-Id: I06775db067207364dcceb0b6ce6d53d17ff057b0 --- tensorflow/core/platform/logging.h | 2 +- tensorflow/core/platform/platform.h | 1 - tensorflow/lite/BUILD | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tensorflow/core/platform/logging.h b/tensorflow/core/platform/logging.h index 6c54601d21e..20f9cd9bdbf 100644 --- a/tensorflow/core/platform/logging.h +++ b/tensorflow/core/platform/logging.h @@ -21,7 +21,7 @@ limitations under the License. #if defined(PLATFORM_GOOGLE) || defined(PLATFORM_GOOGLE_ANDROID) || \ defined(PLATFORM_GOOGLE_IOS) || defined(GOOGLE_LOGGING) || \ - defined(PLATFORM_PORTABLE_GOOGLE) + defined(__EMSCRIPTEN__) #include "tensorflow/core/platform/google/logging.h" // IWYU pragma: export #else #include "tensorflow/core/platform/default/logging.h" // IWYU pragma: export diff --git a/tensorflow/core/platform/platform.h b/tensorflow/core/platform/platform.h index ba9441794b7..46142bc54bf 100644 --- a/tensorflow/core/platform/platform.h +++ b/tensorflow/core/platform/platform.h @@ -34,7 +34,6 @@ limitations under the License. #define PLATFORM_POSIX_IOS #define IS_MOBILE_PLATFORM #else -#define PLATFORM_PORTABLE_GOOGLE #define PLATFORM_POSIX #endif diff --git a/tensorflow/lite/BUILD b/tensorflow/lite/BUILD index 44ca39804cb..1560a35fe17 100644 --- a/tensorflow/lite/BUILD +++ b/tensorflow/lite/BUILD @@ -530,9 +530,6 @@ cc_library( "//tensorflow:ios": [ "minimal_logging_ios.cc", ], - "//tensorflow:macos": [ - "minimal_logging_default.cc", - ], "//conditions:default": [ "minimal_logging_default.cc", ],