Add the Clang sysroot to the config output (#6642)

This commit is contained in:
Chandler Carruth
2026-01-22 18:10:40 +00:00
committed by GitHub
parent f42352759f
commit f772d266a4
3 changed files with 36 additions and 21 deletions
+5
View File
@@ -250,6 +250,11 @@ TEST_F(DriverTest, ConfigJson) {
json_obj->getString("INSTALL_ROOT");
ASSERT_THAT(install_root, Ne(std::nullopt));
EXPECT_THAT(Filesystem::Cwd().OpenDir(install_root->str()), IsSuccess(_));
std::optional<llvm::StringRef> clang_sysroot =
json_obj->getString("CLANG_SYSROOT");
ASSERT_THAT(clang_sysroot, Ne(std::nullopt));
EXPECT_THAT(Filesystem::Cwd().OpenDir(clang_sysroot->str()), IsSuccess(_));
}
} // namespace