Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails building targets using xcode sdkroot #60

Open
joprice opened this issue Feb 28, 2024 · 0 comments
Open

fails building targets using xcode sdkroot #60

joprice opened this issue Feb 28, 2024 · 0 comments

Comments

@joprice
Copy link

joprice commented Feb 28, 2024

When building mac or ios apps, the sysroot is set to the local xcode's directory via an identifier that gets replaced on the fly by bazel. Without this, I see errors like the following when running the clang tidy check:

error: no such sysroot directory: '__BAZEL_XCODE_SDKROOT__' [clang-diagnostic-missing-sysroot]

Unfortunately, it seems that this mechanism isn't exposed and from a few searches, I found many rules replicating the logic to discover the sdkroot such as the following: https://github.com/hedronvision/bazel-compile-commands-extractor/blob/204aa593e002cbd177d30f11f54cff3559110bb9/refresh.template.py#L758-L780

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

No branches or pull requests

1 participant