From e2f4205ca3481622d923905a4bd0f27edfb11121 Mon Sep 17 00:00:00 2001 From: micttyl <109993301+micttyl@users.noreply.github.com> Date: Mon, 12 Sep 2022 10:31:07 -0700 Subject: [PATCH] Enable Local Patches (#2168) Configure `WORKSPACE` so to use patches that we have in the current repository --- WORKSPACE | 4 ++-- bazel/llvm-patches/BUILD | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 bazel/llvm-patches/BUILD diff --git a/WORKSPACE b/WORKSPACE index 120c1c52544b..bae46b5d26f7 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -93,8 +93,8 @@ http_archive( 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", + "@carbon//bazel/llvm-patches:0001-Patch-for-mallinfo2-when-using-Bazel-build-system.patch", + "@carbon//bazel/llvm-patches:0002-Added-Bazel-build-for-compiler-rt-fuzzer.patch", ], sha256 = "0a3929c5f2fe756820277be7b10e95f7480e7cb7f297ec574d3e9ddeac9068d7", strip_prefix = "llvm-project-%s" % llvm_version, diff --git a/bazel/llvm-patches/BUILD b/bazel/llvm-patches/BUILD new file mode 100644 index 000000000000..8fe7e2c41437 --- /dev/null +++ b/bazel/llvm-patches/BUILD @@ -0,0 +1,9 @@ +# Part of the Carbon Language project, under the Apache License v2.0 with LLVM +# Exceptions. See /LICENSE for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +package(default_visibility = ["//visibility:public"]) + +exports_files(glob([ + "*.patch", +]))