diff --git a/BUILD b/BUILD index c38493e..5bd11c5 100644 --- a/BUILD +++ b/BUILD @@ -9,6 +9,7 @@ filegroup( srcs = [ "BUILD", "WORKSPACE", + "//abi:srcs", "//cpu:srcs", "//os:srcs", ], diff --git a/abi/BUILD b/abi/BUILD new file mode 100644 index 0000000..b4d14dd --- /dev/null +++ b/abi/BUILD @@ -0,0 +1,29 @@ +# Standard constraint_setting and constraint_values to be used in platforms. +licenses(["notice"]) + +package( + default_visibility = ["//visibility:public"], +) + +filegroup( + name = "srcs", + srcs = glob(["**"]), +) + +# To add a new constraint_value see https://github.com/bazelbuild/platforms. +constraint_setting(name = "abi") + +constraint_value( + name = "gnu", + constraint_setting = ":abi", +) + +constraint_value( + name = "musl", + constraint_setting = ":abi", +) + +constraint_value( + name = "msvc", + constraint_setting = ":abi", +)