[all-commits] [llvm/llvm-project] 1c532b: bazel build --incompatible_no_implicit_file_export
bjacob via All-commits
all-commits at lists.llvm.org
Wed Jun 14 12:25:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1c532b5e44fa1fbff84c494c659fe722b7df4b10
https://github.com/llvm/llvm-project/commit/1c532b5e44fa1fbff84c494c659fe722b7df4b10
Author: Benoit Jacob <benoitjacob at google.com>
Date: 2023-06-14 (Wed, 14 Jun 2023)
Changed paths:
M utils/bazel/.bazelrc
M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Log Message:
-----------
bazel build --incompatible_no_implicit_file_export
The Bazel build was relying, for the two files enumerated in this diff, on the legacy implicit-export semantics described here:
https://bazel.build/reference/be/functions#exports_files
This documentation page encourages migrating away from this legacy behavior, and indeed we have a user who reported a Bazel build error and it appears that they were already using the new, stricter behavior:
https://github.com/openxla/iree/pull/13982
and while examining fixes on our side and trying to get a clean Bazel build, I ran into this similar issue in the LLVM overlay.
It would arguably be cleaner (in the sense of more structured) to rely on `filegroup` to export this, but I am insufficiently familiar with the Clang build (the dependent targets seem to be below Clang) to do this myself. The present `exports_files` solution has the merit of being localized in these few lines here.
Differential Revision: https://reviews.llvm.org/D152491
More information about the All-commits
mailing list