Use wrapped cxx_binary
Summary: Introduce `yoga_cxx_binary` Reviewed By: grzmiel Differential Revision: D7809271 fbshipit-source-id: 1b66ce59a73e4a63b670f7d3bcadfbb6cbfbc220
This commit is contained in:
committed by
Facebook Github Bot
parent
e1c19cecad
commit
3564ccf6e4
@@ -3,9 +3,9 @@
|
|||||||
# This source code is licensed under the MIT license found in the
|
# This source code is licensed under the MIT license found in the
|
||||||
# LICENSE file in the root directory of this source tree.
|
# LICENSE file in the root directory of this source tree.
|
||||||
|
|
||||||
load("//:yoga_defs.bzl", "yoga_dep", "ANDROID", "APPLE")
|
load("//:yoga_defs.bzl", "yoga_cxx_binary", "yoga_dep")
|
||||||
|
|
||||||
cxx_binary(
|
yoga_cxx_binary(
|
||||||
name = "benchmark",
|
name = "benchmark",
|
||||||
srcs = glob(["*.c"]),
|
srcs = glob(["*.c"]),
|
||||||
headers = subdir_glob([("", "*.h")]),
|
headers = subdir_glob([("", "*.h")]),
|
||||||
@@ -18,7 +18,6 @@ cxx_binary(
|
|||||||
"-O3",
|
"-O3",
|
||||||
"-std=c11",
|
"-std=c11",
|
||||||
],
|
],
|
||||||
platforms = (ANDROID, APPLE),
|
|
||||||
visibility = ["PUBLIC"],
|
visibility = ["PUBLIC"],
|
||||||
deps = [
|
deps = [
|
||||||
yoga_dep(":yoga"),
|
yoga_dep(":yoga"),
|
||||||
|
@@ -69,6 +69,11 @@ def yoga_apple_test(*args, **kwargs):
|
|||||||
native.apple_test(*args, **kwargs)
|
native.apple_test(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
def yoga_cxx_binary(*args, **kwargs):
|
||||||
|
kwargs.pop("platforms", None)
|
||||||
|
native.cxx_binary(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
def yoga_cxx_library(*args, **kwargs):
|
def yoga_cxx_library(*args, **kwargs):
|
||||||
# Currently unused
|
# Currently unused
|
||||||
kwargs.pop("platforms", None)
|
kwargs.pop("platforms", None)
|
||||||
|
Reference in New Issue
Block a user