Skip to content

Conversation

@slackito
Copy link
Collaborator

This target exists to allow #include "Header.h" for headers in lib/Basic rather than using file-relative inclusion. This is rather hacky and results in having two targets that claim the same headers.

Instead, we can pass a -I flag in the copts for //clang:basic, to adjust the include path to keep those #include "Header.h" directives working. There are other targets in this file already doing a similar thing for generated files.

This target exists to allow `#include "Header.h"` for headers in
lib/Basic rather than using file-relative inclusion. This is rather
hacky and results in having two targets that claim the same headers.

Instead, we can pass a `-I` flag in the `copts` for //clang:basic, to
adjust the include path to keep those `#include "Header.h"` directives
working. There are other targets in this file already doing a similar
thing for generated files.
@llvmbot llvmbot added the bazel "Peripheral" support tier build system: utils/bazel label Jan 16, 2025
@slackito slackito merged commit 3065cf2 into llvm:main Jan 17, 2025
8 checks passed
@slackito slackito deleted the bazel_basic_internal_headers branch January 17, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel "Peripheral" support tier build system: utils/bazel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants