rules_foreign_cc/examples/current_toolchains/BUILD.bazel

14 lines
348 B
Python
Raw Permalink Normal View History

2022-11-02 22:02:55 +00:00
load("@bazel_skylib//rules:build_test.bzl", "build_test")
genrule(
name = "current_make_toolchain_test",
outs = ["out.txt"],
cmd = "$(MAKE) --version > $@",
toolchains = ["@rules_foreign_cc//toolchains:current_make_toolchain"],
)
build_test(
name = "current_toolchain_tests",
targets = [":current_make_toolchain_test"],
)