Skip to content

Conversation

@keith
Copy link
Contributor

@keith keith commented Apr 30, 2025

If you vendor clang-tidy in a hermetic toolchain, it likely cannot find
the builtin headers path. To solve this you have to pass -resource-dir
to the correct path. This is similar to the new gcc option but with a
different flag.

If you vendor clang-tidy in a hermetic toolchain, it likely cannot find
the builtin headers path. To solve this you have to pass `-resource-dir`
to the correct path. This is similar to the new gcc option but with a
different flag.

files = ctx.attr.clang_tidy_resource_dir.files.to_list()
if files:
directory = files[0].path.split("/include/")[0]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is ugly but i think we'd have to use skylib directly to access a better api from the provider to improve this

@erenon
Copy link
Owner

erenon commented May 5, 2025

Thanks!

@erenon erenon merged commit 9e9bfc5 into erenon:master May 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants