Fix minimal logging build for macos

PiperOrigin-RevId: 308348214
Change-Id: I3124935938e7040aff9c83eeeda3cba9d8d61709
This commit is contained in:
Jared Duke 2020-04-24 16:24:55 -07:00 committed by TensorFlower Gardener
parent 3b1545a555
commit ceee848cea
3 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,7 @@ limitations under the License.
#if defined(PLATFORM_GOOGLE) || defined(PLATFORM_GOOGLE_ANDROID) || \
defined(PLATFORM_GOOGLE_IOS) || defined(GOOGLE_LOGGING) || \
defined(__EMSCRIPTEN__)
defined(PLATFORM_PORTABLE_GOOGLE)
#include "tensorflow/core/platform/google/logging.h" // IWYU pragma: export
#else
#include "tensorflow/core/platform/default/logging.h" // IWYU pragma: export

View File

@ -34,6 +34,7 @@ limitations under the License.
#define PLATFORM_POSIX_IOS
#define IS_MOBILE_PLATFORM
#else
#define PLATFORM_PORTABLE_GOOGLE
#define PLATFORM_POSIX
#endif

View File

@ -530,6 +530,9 @@ cc_library(
"//tensorflow:ios": [
"minimal_logging_ios.cc",
],
"//tensorflow:macos": [
"minimal_logging_default.cc",
],
"//conditions:default": [
"minimal_logging_default.cc",
],