Fixed Makefile for benchmark build sandbox/akazmin/tizen_6.0_build
authorAndrey Kazmin <a.kazmin@partner.samsung.com>
Fri, 13 Dec 2019 13:17:46 +0000 (16:17 +0300)
committerAndrey Kazmin <a.kazmin@partner.samsung.com>
Fri, 13 Dec 2019 13:18:09 +0000 (16:18 +0300)
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 <a.kazmin@partner.samsung.com>
tensorflow/lite/tools/make/Makefile

index 22b2ab1c0f7c96f0be054cc29347b3d024201999..5ddc19bb65cbba1b30d9137f9afc95e3c6ad2099 100644 (file)
@@ -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