Fix minimal logging build for macos
PiperOrigin-RevId: 315321111 Change-Id: I205b82403e663bc415156cbe7e1d82e3b8866e93
This commit is contained in:
parent
a00daa2f37
commit
2a85bf4a14
@ -34,6 +34,7 @@ limitations under the License.
|
||||
#define PLATFORM_POSIX_IOS
|
||||
#define IS_MOBILE_PLATFORM
|
||||
#else
|
||||
// If no platform specified, use:
|
||||
#define PLATFORM_POSIX
|
||||
#endif
|
||||
|
||||
|
@ -385,6 +385,7 @@ cc_test(
|
||||
features = ["-dynamic_link_test_srcs"], # see go/dynamic_link_test_srcs
|
||||
tags = [
|
||||
"tflite_not_portable_ios", # TODO(b/117786830)
|
||||
"tflite_smoke_test",
|
||||
],
|
||||
deps = [
|
||||
":external_cpu_backend_context",
|
||||
@ -453,6 +454,7 @@ cc_test(
|
||||
],
|
||||
tags = [
|
||||
"tflite_not_portable",
|
||||
"tflite_smoke_test",
|
||||
],
|
||||
deps = [
|
||||
":framework",
|
||||
@ -501,6 +503,7 @@ cc_test(
|
||||
"no_windows", # No weak symbols with MSVC.
|
||||
"tflite_not_portable_android",
|
||||
"tflite_not_portable_ios",
|
||||
"tflite_smoke_test",
|
||||
],
|
||||
deps = [
|
||||
":framework",
|
||||
@ -567,6 +570,9 @@ cc_library(
|
||||
"//tensorflow:ios": [
|
||||
"minimal_logging_ios.cc",
|
||||
],
|
||||
"//tensorflow:macos": [
|
||||
"minimal_logging_default.cc",
|
||||
],
|
||||
"//conditions:default": [
|
||||
"minimal_logging_default.cc",
|
||||
],
|
||||
|
@ -18,10 +18,6 @@ limitations under the License.
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user