|
| 1 | +From 14d8bd430a720dd6a01d18440fafa015bdeb5260 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Vincent ABRIOU <vincent.abriou@st.com> |
| 3 | +Date: Fri, 29 Jan 2021 10:39:10 +0100 |
| 4 | +Subject: [PATCH 1/1] TFLite: tools: make: remove test_delegate_providers.cc |
| 5 | + from the build resources for libtensorflow-lite.a |
| 6 | + |
| 7 | +lite/kernel/test_delegate_providers.cc should not be include in |
| 8 | +libtensorflow-lite.a but it was not par of CORE_CC_EXCLUDE_SRCS because the |
| 9 | +file syntax was not recognized as an excluded file. |
| 10 | +This patch propose to exclude all the file containing *test*.cc. |
| 11 | + |
| 12 | +Signed-off-by: Vincent ABRIOU <vincent.abriou@st.com> |
| 13 | +--- |
| 14 | + tensorflow/lite/tools/make/Makefile | 3 +-- |
| 15 | + 1 file changed, 1 insertion(+), 2 deletions(-) |
| 16 | + |
| 17 | +diff --git a/tensorflow/lite/tools/make/Makefile b/tensorflow/lite/tools/make/Makefile |
| 18 | +index 9d90e9526be..617e818c87f 100644 |
| 19 | +--- a/tensorflow/lite/tools/make/Makefile |
| 20 | ++++ b/tensorflow/lite/tools/make/Makefile |
| 21 | +@@ -171,6 +171,7 @@ CORE_CC_EXCLUDE_SRCS := \ |
| 22 | + $(wildcard tensorflow/lite/*test.cc) \ |
| 23 | + $(wildcard tensorflow/lite/*/*test.c) \ |
| 24 | + $(wildcard tensorflow/lite/*/*test.cc) \ |
| 25 | ++$(wildcard tensorflow/lite/*/*test*.cc) \ |
| 26 | + $(wildcard tensorflow/lite/*/*/benchmark.cc) \ |
| 27 | + $(wildcard tensorflow/lite/*/*/example*.cc) \ |
| 28 | + $(wildcard tensorflow/lite/*/*/test*.cc) \ |
| 29 | +@@ -186,8 +187,6 @@ $(wildcard tensorflow/lite/*/*/*/*/*/example*.cc) \ |
| 30 | + $(wildcard tensorflow/lite/*/*/*/*/*/test*.cc) \ |
| 31 | + $(wildcard tensorflow/lite/*/*/*/*/*/*test.cc) \ |
| 32 | + $(wildcard tensorflow/lite/*/*/*/*/*/*tool.cc) \ |
| 33 | +-$(wildcard tensorflow/lite/kernels/*test_main.cc) \ |
| 34 | +-$(wildcard tensorflow/lite/kernels/*test_util*.cc) \ |
| 35 | + $(wildcard tensorflow/lite/tools/make/downloads/cpuinfo/src/*/mock*.c) \ |
| 36 | + tensorflow/lite/tflite_with_xnnpack.cc \ |
| 37 | + $(MINIMAL_SRCS) |
| 38 | +-- |
| 39 | +2.17.1 |
| 40 | + |
0 commit comments