2018-09-11 15:27:47 -07:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2016-10-11 05:43:54 -07:00
|
|
|
#
|
2018-02-16 18:24:55 -08:00
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
2018-08-28 21:54:41 -07:00
|
|
|
load("//tools/build_defs/oss:yoga_defs.bzl", "subdir_glob", "yoga_cxx_binary", "yoga_dep")
|
2016-10-11 05:43:54 -07:00
|
|
|
|
2018-04-28 20:42:53 -07:00
|
|
|
yoga_cxx_binary(
|
2017-02-24 21:40:45 -08:00
|
|
|
name = "benchmark",
|
|
|
|
srcs = glob(["*.c"]),
|
2017-09-25 10:10:19 -07:00
|
|
|
headers = subdir_glob([("", "*.h")]),
|
|
|
|
header_namespace = "",
|
2017-02-24 21:40:45 -08:00
|
|
|
compiler_flags = [
|
|
|
|
"-fno-omit-frame-pointer",
|
|
|
|
"-fexceptions",
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-O3",
|
|
|
|
"-std=c11",
|
|
|
|
],
|
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
deps = [
|
|
|
|
yoga_dep(":yoga"),
|
|
|
|
],
|
2016-10-11 05:43:54 -07:00
|
|
|
)
|