mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 18:01:07 +01:00
Propagate llvm::vfs::FileSystem from driver_env to Clang (#4537)
As discussed in #4530 . This required switching to using `llvm::IntrusiveRefCntPtr` in a number of places. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -45,7 +45,8 @@ ClangSubcommand::ClangSubcommand() : DriverSubcommand(SubcommandInfo) {}
|
||||
// https://github.com/llvm/llvm-project/blob/main/clang/tools/driver/driver.cpp
|
||||
auto ClangSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
std::string target = llvm::sys::getDefaultTargetTriple();
|
||||
ClangRunner runner(driver_env.installation, target, driver_env.vlog_stream);
|
||||
ClangRunner runner(driver_env.installation, target, driver_env.fs,
|
||||
driver_env.vlog_stream);
|
||||
|
||||
// Don't run Clang when fuzzing, it is known to not be reliable under fuzzing
|
||||
// due to many unfixed issues.
|
||||
|
||||
Reference in New Issue
Block a user