1"""Transitive dependencies for the Rust `bindgen` rules""" 2 3load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps") 4 5# buildifier: disable=unnamed-macro 6def rust_bindgen_transitive_dependencies(): 7 """Declare transitive dependencies needed for bindgen.""" 8 9 llvm_configure( 10 name = "llvm-project", 11 repo_mapping = {"@llvm_zlib": "@zlib"}, 12 targets = [ 13 "AArch64", 14 "X86", 15 ], 16 ) 17 18 # Disables optional dependencies for Support like zlib and terminfo. You may 19 # instead want to configure them using the macros in the corresponding bzl 20 # files. 21 llvm_disable_optional_support_deps() 22