[PATCH] libc++: Add option to disable access to the global filesystem namespace

Ed Schouten ed at nuxi.nl
Thu Mar 12 07:31:13 PDT 2015


Hi Jonathan,

This is interesting. Today I spent quite some time getting lit to do what I want but it seems I'm running into the issue that lit completely ignores the `lit.local.cfg` files that I've created. The fstream tests are executed even if I build with `-DLIBCXX_ENABLE_GLOBAL_FILESYSTEM_NAMESPACE=OFF`. Conversely, the `fopen.fail.cpp` test is still executed even if the global filesystem namespace is available.

It looks like I'm the first person attempting to add a `lit.local.cfg` to libc++. Maybe we still need to flip a switch to have it enabled? I looked around, but I wasn't able to figure out what to do.

Ed


http://reviews.llvm.org/D8194

Files:
  CMakeLists.txt
  include/__config
  include/cstdio
  include/fstream
  test/CMakeLists.txt
  test/libcxx/test/config.py
  test/lit.site.cfg.in
  test/std/input.output/file.streams/c.files/cstdio.pass.cpp
  test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp
  test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/lit.local.cfg
  test/std/input.output/file.streams/fstreams/lit.local.cfg
  test/std/localization/locales/locale.convenience/conversions/conversions.buffer/lit.local.cfg
  test/support/platform_support.h

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8194.21830.patch
Type: text/x-patch
Size: 14193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150312/0c5d8ac6/attachment.bin>


More information about the cfe-commits mailing list