[PATCH] D152491: Fix bazel build --incompatible_no_implicit_file_export
Benoit Jacob via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 14 07:33:24 PDT 2023
Benoit updated this revision to Diff 531325.
Benoit added a comment.
Add the flag to .bazelrc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152491/new/
https://reviews.llvm.org/D152491
Files:
utils/bazel/.bazelrc
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -17,7 +17,11 @@
licenses(["notice"])
-exports_files(["LICENSE.TXT"])
+exports_files([
+ "LICENSE.TXT",
+ "cmake/modules/llvm-driver-template.cpp.in",
+ "include/llvm/Option/OptParser.td"
+])
# It may be tempting to add compiler flags here, but that should be avoided.
# The necessary warnings and other compile flags should be provided by the
Index: utils/bazel/.bazelrc
===================================================================
--- utils/bazel/.bazelrc
+++ utils/bazel/.bazelrc
@@ -25,6 +25,11 @@
# Add layering check to all projects.
build --features=layering_check
+# Out out of legacy lax behavior implicitly exporting files that are rule inputs
+# with default visibility.
+# See: https://bazel.build/reference/be/functions#exports_files
+build --incompatible_no_implicit_file_export
+
###############################################################################
# Options to select different strategies for linking potential dependent
# libraries. The default leaves it disabled.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152491.531325.patch
Type: text/x-patch
Size: 1260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230614/c8561cd5/attachment.bin>
More information about the llvm-commits
mailing list