From ee17725a131d96da46c09612b60d94a0af48c848 Mon Sep 17 00:00:00 2001 From: Andrey Kazmin Date: Fri, 13 Dec 2019 16:17:46 +0300 Subject: [PATCH] Fixed Makefile for benchmark build Filtered out benchmark_plus_flex_main.cc from benchmark build, because of its tflite::benchmark::Main conflicts with ones defined in benchmark_main.cc. We didn't ever build benchmark_model with Flex op support. So, we could simply filter out benchmark_plus_flex_main.cc from benchmark sources. Signed-off-by: Andrey Kazmin --- tensorflow/lite/tools/make/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorflow/lite/tools/make/Makefile b/tensorflow/lite/tools/make/Makefile index 22b2ab1c0f..5ddc19bb65 100644 --- a/tensorflow/lite/tools/make/Makefile +++ b/tensorflow/lite/tools/make/Makefile @@ -133,7 +133,8 @@ BENCHMARK_ALL_SRCS := $(TFLITE_CC_SRCS) \ $(PROFILE_SUMMARIZER_SRCS) BENCHMARK_SRCS := $(filter-out \ - $(wildcard $(BENCHMARK_SRCS_DIR)/*_test.cc), \ + $(wildcard $(BENCHMARK_SRCS_DIR)/*_test.cc) \ + $(BENCHMARK_SRCS_DIR)/benchmark_plus_flex_main.cc, \ $(BENCHMARK_ALL_SRCS)) # These target-specific makefiles should modify or replace options like -- 2.34.1