diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-10 11:44:28 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-10 12:04:15 -0400 |
| commit | 4f2d94180ddffcb23cb1f3682242df735eeac03f (patch) | |
| tree | 6ff700f892bdaa6f8a1d39a8c0d3f3158ba83b06 /src/bootstrap | |
| parent | 25b2f4861222d6507598149f576e7d25dc308c8c (diff) | |
| download | rust-4f2d94180ddffcb23cb1f3682242df735eeac03f.tar.gz rust-4f2d94180ddffcb23cb1f3682242df735eeac03f.zip | |
Only copy LLVM into rust-dev with internal LLVM
This avoids needing to figure out where to locate each of the components with an external LLVM.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/dist.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 797a1ce20b4..25d0dad5844 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -2524,6 +2524,14 @@ impl Step for RustDev { fn run(self, builder: &Builder<'_>) -> Option<PathBuf> { let target = self.target; + /* run only if llvm-config isn't used */ + if let Some(config) = builder.config.target_config.get(&target) { + if let Some(ref _s) = config.llvm_config { + builder.info(&format!("Skipping RustDev ({}): external LLVM", target)); + return None; + } + } + builder.info(&format!("Dist RustDev ({})", target)); let _time = timeit(builder); let src = builder.src.join("src/llvm-project/llvm"); @@ -2536,6 +2544,7 @@ impl Step for RustDev { // Prepare the image directory let dst_bindir = image.join("bin"); t!(fs::create_dir_all(&dst_bindir)); + let exe = builder.llvm_out(target).join("bin").join(exe("llvm-config", target)); builder.install(&exe, &dst_bindir, 0o755); builder.install(&builder.llvm_filecheck(target), &dst_bindir, 0o755); |
