diff --git a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel index fca964088b1a6..56d44af02e5cc 100644 --- a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel @@ -6,7 +6,7 @@ load("@bazel_skylib//lib:selects.bzl", "selects") load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") load("@bazel_skylib//rules:expand_template.bzl", "expand_template") load("@build_bazel_apple_support//rules:apple_genrule.bzl", "apple_genrule") -load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") +load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_import", "cc_library", "objc_library") load("@rules_python//python:defs.bzl", "py_binary") load("//:vars.bzl", "LLVM_VERSION_MAJOR", "LLVM_VERSION_MINOR", "LLVM_VERSION_PATCH", "LLVM_VERSION_SUFFIX", "PACKAGE_VERSION") load("//lldb/source/Plugins:plugin_config.bzl", "DEFAULT_PLUGINS", "DEFAULT_SCRIPT_PLUGINS", "OBJCPP_COPTS") diff --git a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel index 8c06c4ef6de88..c0f5a79dc53d4 100644 --- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel @@ -2,7 +2,7 @@ # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception load("@bazel_skylib//rules:expand_template.bzl", "expand_template") -load("@rules_cc//cc:defs.bzl", "cc_library") +load("@rules_cc//cc:defs.bzl", "cc_library", "objc_library") load("//mlir:tblgen.bzl", "gentbl_cc_library") load(":plugin_config.bzl", "DEFAULT_PLUGINS", "DEFAULT_SCRIPT_PLUGINS", "OBJCPP_COPTS") diff --git a/utils/bazel/llvm-project-overlay/llvm/driver.bzl b/utils/bazel/llvm-project-overlay/llvm/driver.bzl index 39093db5f73b0..331e3f7e0db1f 100644 --- a/utils/bazel/llvm-project-overlay/llvm/driver.bzl +++ b/utils/bazel/llvm-project-overlay/llvm/driver.bzl @@ -6,7 +6,7 @@ load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo") load("@bazel_skylib//rules:expand_template.bzl", "expand_template") -load("@rules_cc//cc:defs.bzl", "cc_binary") +load("@rules_cc//cc:defs.bzl", "CcInfo", "cc_binary") # Mapping from every tool to the cc_library that implements the tool's entrypoint. _TOOLS = { diff --git a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel index dc8aa406fb2f6..3fa62bf708514 100644 --- a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel @@ -2,7 +2,7 @@ # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") +load("@rules_cc//cc:defs.bzl", "cc_library", "cc_shared_library", "cc_test") load("//mlir:tblgen.bzl", "gentbl_cc_library") package( diff --git a/utils/bazel/llvm-project-overlay/mlir/build_defs.bzl b/utils/bazel/llvm-project-overlay/mlir/build_defs.bzl index b3fb4fcc32338..5a3a776258b06 100644 --- a/utils/bazel/llvm-project-overlay/mlir/build_defs.bzl +++ b/utils/bazel/llvm-project-overlay/mlir/build_defs.bzl @@ -4,7 +4,7 @@ """Rules and macros for MLIR""" -load("@rules_cc//cc:defs.bzl", "cc_library") +load("@rules_cc//cc:defs.bzl", "CcInfo", "cc_library") def if_cuda_available(if_true, if_false = []): return select({ diff --git a/utils/bazel/llvm-project-overlay/mlir/examples/transform-opt/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/examples/transform-opt/BUILD.bazel index 22670bddb6d33..6f6a3f5310467 100644 --- a/utils/bazel/llvm-project-overlay/mlir/examples/transform-opt/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/examples/transform-opt/BUILD.bazel @@ -1,5 +1,7 @@ # MLIR transform dialect standalone example. +load("@rules_cc//cc:defs.bzl", "cc_binary") + package(default_visibility = ["//visibility:public"]) cc_binary( diff --git a/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch2/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch2/BUILD.bazel index a6f120cdca3f1..d1610fe367aec 100644 --- a/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch2/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch2/BUILD.bazel @@ -1,6 +1,7 @@ # Description: # MLIR Tutorial +load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") load("//mlir:tblgen.bzl", "gentbl_cc_library", "td_library") licenses(["notice"]) diff --git a/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch3/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch3/BUILD.bazel index cba4339c2f83f..0f7b9abfaa8d1 100644 --- a/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch3/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch3/BUILD.bazel @@ -1,6 +1,7 @@ # Description: # MLIR Tutorial +load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") load("//mlir:tblgen.bzl", "gentbl_cc_library", "td_library") licenses(["notice"]) diff --git a/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch4/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch4/BUILD.bazel index 81c0161be118e..39e4ddd2b8d3c 100644 --- a/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch4/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/examples/transform/Ch4/BUILD.bazel @@ -1,6 +1,7 @@ # Description: # MLIR Tutorial +load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") load("//mlir:tblgen.bzl", "gentbl_cc_library", "td_library") licenses(["notice"])