mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 18:40:16 +01:00
Format Bazel files and add argument to run buildifier on pre-commit (#1919)
This commit is contained in:
@@ -57,9 +57,10 @@ repos:
|
||||
- id: buildifier
|
||||
name: Bazel buildifier
|
||||
entry: scripts/run_buildifier.py
|
||||
args: ['-r', '.']
|
||||
language: python
|
||||
files: |
|
||||
(?x)^(
|
||||
'(?x)^(
|
||||
.*BUILD.*|
|
||||
.*WORKSPACE.*|
|
||||
.*\.bzl
|
||||
|
||||
@@ -92,8 +92,10 @@ http_archive(
|
||||
name = "llvm-raw",
|
||||
build_file_content = "# empty",
|
||||
patch_args = ["-p1"],
|
||||
patches = ["@//:bazel/llvm-patches/0001-Patch-for-mallinfo2-when-using-Bazel-build-system.patch",
|
||||
"@//:bazel/llvm-patches/0002-Added-Bazel-build-for-compiler-rt-fuzzer.patch"],
|
||||
patches = [
|
||||
"@//:bazel/llvm-patches/0001-Patch-for-mallinfo2-when-using-Bazel-build-system.patch",
|
||||
"@//:bazel/llvm-patches/0002-Added-Bazel-build-for-compiler-rt-fuzzer.patch",
|
||||
],
|
||||
sha256 = "0a3929c5f2fe756820277be7b10e95f7480e7cb7f297ec574d3e9ddeac9068d7",
|
||||
strip_prefix = "llvm-project-%s" % llvm_version,
|
||||
urls = ["https://github.com/llvm/llvm-project/archive/%s.tar.gz" % llvm_version],
|
||||
|
||||
@@ -19,9 +19,9 @@ load(
|
||||
load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES")
|
||||
load(
|
||||
":clang_detected_variables.bzl",
|
||||
"clang_bindir",
|
||||
"clang_include_dirs_list",
|
||||
"clang_resource_dir",
|
||||
"clang_bindir",
|
||||
"llvm_bindir",
|
||||
"sysroot_dir",
|
||||
)
|
||||
|
||||
@@ -40,7 +40,7 @@ def cc_fuzz_test(
|
||||
if "fuzzer" not in features:
|
||||
features = features + ["fuzzer"]
|
||||
if "@llvm-project//compiler-rt:FuzzerMain" not in deps:
|
||||
deps = deps + ["@llvm-project//compiler-rt:FuzzerMain"]
|
||||
deps = deps + ["@llvm-project//compiler-rt:FuzzerMain"]
|
||||
|
||||
# Append the corpus files to the test arguments. When run on a list of
|
||||
# files rather than a directory, libFuzzer-based fuzzers will perform a
|
||||
|
||||
Reference in New Issue
Block a user