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

Detect the compiler vendor and disable -index-store-path if not Apple #24

Open
jakepetroules opened this issue Jan 31, 2025 · 0 comments · May be fixed by #142
Open

Detect the compiler vendor and disable -index-store-path if not Apple #24

jakepetroules opened this issue Jan 31, 2025 · 0 comments · May be fixed by #142

Comments

@jakepetroules
Copy link
Collaborator

The clang -index-store-path is only in Apple clang, and not upstream LLVM. We need to detect whether we have an Apple clang, and only pass this flag to the compiler when that is the case.

This can be an issue on Linux, especially in Docker containers, where Apple's clang may be installed at /usr/bin/clang and then subsequently overwritten by the system package manager which also owns that same path for one of the packages supported by the distro.

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 a pull request may close this issue.

1 participant