llvm-project
1ff7c8bf - [compiler-rt] Fix musl build

Commit
32 days ago
[compiler-rt] Fix musl build The change in PR #154268 introduced a dependency on the `__GLIBC_PREREQ` macro, which is not defined in musl libc. This caused the build to fail in environments using musl. This patch fixes the build by including `sanitizer_common/sanitizer_glibc_version.h`. This header provides a fallback definition for `__GLIBC_PREREQ` when LLVM is built against non-glibc C libraries, resolving the compilation error.
Author
Committer
Parents
Loading