Fix minimal logging build for macos
PiperOrigin-RevId: 308348214 Change-Id: I3124935938e7040aff9c83eeeda3cba9d8d61709
This commit is contained in:
parent
3b1545a555
commit
ceee848cea
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -530,6 +530,9 @@ cc_library(
|
||||
"//tensorflow:ios": [
|
||||
"minimal_logging_ios.cc",
|
||||
],
|
||||
"//tensorflow:macos": [
|
||||
"minimal_logging_default.cc",
|
||||
],
|
||||
"//conditions:default": [
|
||||
"minimal_logging_default.cc",
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user