Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: fix crash on CC without libc support
Without this change pkgsLLVM fails to build any packages as compiler-rt fails early in cmake: CMake Error at ...-cmake-3.24.0/share/cmake-3.24/Modules/Platform/UnixPaths.cmake:53 (file): file STRINGS file "...-x86_64-unknown-linux-gnu-clang-wrapper-11.1.0/nix-support/orig-libc-dev" cannot be read. It's a regression caused by 871cf9f "cmake: detect libc location at runtime NixOS#181431" where we started using `orig-libc-dev` as a libc pointer. During pkgsLLVM pootstrap first compiler has no libc support yet. The change skips runtime detection if there are no libc signs.
- Loading branch information