Ver código fonte

Remove uses of rules_cc (#776)

Per https://github.com/bazelbuild/rules_cc this still isn't necessary. There's no build-time enforcement, so usage is inconsistent/incorrect. Rather than letting this linger, remove it pending Bazel tooling enforcing it.
Jon Meow 4 anos atrás
pai
commit
d7b2c9b580

+ 0 - 1
executable_semantics/BUILD

@@ -2,7 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
 load("//bazel/testing:golden_test.bzl", "golden_test")
 load("test_list.bzl", "TEST_LIST")
 

+ 0 - 2
executable_semantics/ast/BUILD

@@ -2,8 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_library")
-
 package(default_visibility = ["//executable_semantics:__subpackages__"])
 
 cc_library(

+ 0 - 2
executable_semantics/interpreter/BUILD

@@ -2,8 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_library")
-
 package(default_visibility = ["//executable_semantics:__subpackages__"])
 
 cc_library(

+ 0 - 2
executable_semantics/syntax/BUILD

@@ -2,8 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_library")
-
 package(default_visibility = ["//executable_semantics:__pkg__"])
 
 cc_library(

+ 0 - 2
migrate_cpp/cpp_refactoring/BUILD

@@ -2,8 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
-
 package(default_visibility = ["//visibility:public"])
 
 cc_binary(

+ 0 - 2
third_party/examples/woff2/BUILD.original

@@ -4,8 +4,6 @@
 
 # Rules are adapted from CMakeLists.txt.
 
-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
-
 package(
     default_visibility = ["//visibility:public"],
 )

+ 0 - 2
third_party/examples/woff2/carbon/BUILD

@@ -4,8 +4,6 @@
 
 # Rules are adapted from CMakeLists.txt.
 
-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
-
 package(
     default_visibility = ["//visibility:public"],
 )

+ 0 - 2
toolchain/common/BUILD

@@ -2,8 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
-
 package(default_visibility = ["//visibility:public"])
 
 cc_library(

+ 0 - 2
toolchain/diagnostics/BUILD

@@ -2,8 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
-
 package(default_visibility = ["//visibility:public"])
 
 cc_library(

+ 0 - 1
toolchain/driver/BUILD

@@ -2,7 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
 load("//bazel/fuzzing:rules.bzl", "cc_fuzz_test")
 
 package(default_visibility = ["//visibility:public"])

+ 0 - 1
toolchain/lexer/BUILD

@@ -2,7 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
 load("//bazel/fuzzing:rules.bzl", "cc_fuzz_test")
 
 package(default_visibility = ["//visibility:public"])

+ 0 - 1
toolchain/parser/BUILD

@@ -2,7 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
 load("//bazel/fuzzing:rules.bzl", "cc_fuzz_test")
 
 package(default_visibility = ["//visibility:public"])

+ 0 - 2
toolchain/source/BUILD

@@ -2,8 +2,6 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
-
 package(default_visibility = ["//visibility:public"])
 
 cc_library(