llvm-project
4a4bddec - [clang] Delay normalization of `-fmodules-cache-path` (#150123)

Commit
98 days ago
[clang] Delay normalization of `-fmodules-cache-path` (#150123) This PR is part of an effort to remove file system usage from the command line parsing code. The reason for that is that it's impossible to do file system access correctly without a configured VFS, and the VFS can only be configured after the command line is parsed. I don't want to intertwine command line parsing and VFS configuration, so I decided to perform the file system access after the command line is parsed and the VFS is configured - ideally right before the file system entity is used for the first time. This patch delays normalization of the module cache path until `CompilerInstance` is asked for the cache path in the current compilation context.
Author
Parents
Loading