[PATCH] D41316: [libcxx] Allow random_device to be built optionally

Weiming Zhao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 30 18:15:17 PST 2018


weimingz updated this revision to Diff 132089.
weimingz added a comment.
Herald added a subscriber: hintonda.

Disable tests that depend on random_device. 
filesystem tests rely on random_device as seed to create random path. Although it's possible to avoid the random_device but if the build target has no random_device, it's very possible that neither filesystem nor other seeding device like clock is available.


Repository:
  rCXX libc++

https://reviews.llvm.org/D41316

Files:
  CMakeLists.txt
  include/__config_site.in
  include/random
  src/random.cpp
  test/libcxx/experimental/filesystem/lit.local.cfg
  test/std/experimental/filesystem/lit.local.cfg
  test/std/numerics/rand/rand.device/lit.local.cfg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41316.132089.patch
Type: text/x-patch
Size: 4133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180131/74381eec/attachment.bin>


More information about the cfe-commits mailing list