Commit 8e3c0274 authored by Michael Crouse's avatar Michael Crouse Committed by Chromium LUCI CQ

[TFLite] Update farmhash build for unused functions.

BUG: 1165517
Change-Id: I878bad081f44e7c258e009357aabe0d09df046fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2623528
Commit-Queue: Michael Crouse <mcrouse@chromium.org>
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Auto-Submit: Michael Crouse <mcrouse@chromium.org>
Reviewed-by: default avatarSophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842301}
parent 8795e063
...@@ -6,6 +6,14 @@ config("farmhash_include") { ...@@ -6,6 +6,14 @@ config("farmhash_include") {
include_dirs = [ "src/src" ] include_dirs = [ "src/src" ]
} }
config("farmhash-warnings") {
cflags = []
# The reduction of farmhash files to a minimum triggers -Wunused-function
# warnings in farmhash.c
cflags += [ "-Wno-unused-function" ]
}
source_set("farmhash") { source_set("farmhash") {
public = [ "src/src/farmhash.h" ] public = [ "src/src/farmhash.h" ]
...@@ -13,6 +21,7 @@ source_set("farmhash") { ...@@ -13,6 +21,7 @@ source_set("farmhash") {
configs -= [ "//build/config/compiler:chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":farmhash-warnings" ]
public_configs = [ ":farmhash_include" ] public_configs = [ ":farmhash_include" ]
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment