mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-09 13:16:08 +00:00

Some platforms, like several embedded platforms, do not provide a source of randomness through a random device. This commit makes it possible to build and test libc++ for such platforms, i.e. without std::random_device. Surprisingly, the only functionality that doesn't work on such platforms is std::random_device itself -- everything else in <random> still works, one just has to find alternative ways to seed the PRNGs.
2 lines
51 B
CMake
2 lines
51 B
CMake
set(LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "")
|