Move the core standard library to the installation. (#3995)

This removes the `data_dir` from the driver favoring the installation
abstraction for the both locating the prelude and linking utilities.

With this, an installed toolchain should also be able to compile and
link Carbon successfully, and the build of the examples should exercise
this path almost exactly. (The only difference is using the driver
`cc_binary` directly rather than relying on the symlink from inside the
install tree.)
This commit is contained in:
Chandler Carruth
2024-06-01 05:16:44 +00:00
committed by GitHub
parent 0d37095ec6
commit e34e240263
15 changed files with 56 additions and 42 deletions
+1 -2
View File
@@ -44,8 +44,7 @@ class DriverTest : public testing::Test {
DriverTest()
: installation_(
InstallPaths::MakeForBazelRunfiles(Testing::GetTestExePath())),
driver_(fs_, &installation_, "", test_output_stream_,
test_error_stream_) {
driver_(fs_, &installation_, test_output_stream_, test_error_stream_) {
char* tmpdir_env = getenv("TEST_TMPDIR");
CARBON_CHECK(tmpdir_env != nullptr);
test_tmpdir_ = tmpdir_env;