[PATCH] D65986: Allow setting the VFS to 'real' mode instead of default 'physical'

JF Bastien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 8 17:16:25 PDT 2019


jfb created this revision.
jfb added reviewers: JDevlieghere, bruno.
Herald added subscribers: cfe-commits, dexonsmith, jkorous.
Herald added a project: clang.

The motivation for 'physical' mode in D58169 <https://reviews.llvm.org/D58169> was pretty sensible, but it has one unfortunate side-effect: working close to the maximum path size now causes failures when it used not to. We therefore want to be able to set the VFS mode for the driver. This requires moving where the driver's VFS is initialized because arguments aren't available in the Driver constructor. I was careful to put this initialization early enough that the VFS isn't used yet (it would segfault if it were, since it's not set).

rdar://problem/54103540


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65986

Files:
  clang/include/clang/Driver/Driver.h
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/Driver.cpp
  clang/test/Driver/vfsmode.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65986.214265.patch
Type: text/x-patch
Size: 6502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190809/43284e75/attachment.bin>


More information about the cfe-commits mailing list