diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-04-05 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-04-07 15:03:24 +0200 |
| commit | 7c5a4cdd669c9816df938a878147fe5b4645e951 (patch) | |
| tree | 65def36082da9569482decd0c32eadc8b1750f7c /src | |
| parent | 39b62533c7f9d0581a6ea9b9fc2cc51f21c3b5b0 (diff) | |
| download | rust-7c5a4cdd669c9816df938a878147fe5b4645e951.tar.gz rust-7c5a4cdd669c9816df938a878147fe5b4645e951.zip | |
Make LLVM version suffix independent of rustc version on dev channel
Remove rustc version from LLVM version suffix on dev channel, avoiding the need for full rebuilds when moving between commits with different LLVM submodule & rustc version.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/native.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index d4d66abd520..1e380a20629 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -235,10 +235,14 @@ impl Step for Llvm { if !suffix.is_empty() { cfg.define("LLVM_VERSION_SUFFIX", suffix); } + } else if builder.config.channel == "dev" { + // Changes to a version suffix require a complete rebuild of the LLVM. + // To avoid rebuilds during a time of version bump, don't include rustc + // release number on the dev channel. + cfg.define("LLVM_VERSION_SUFFIX", "-rust-dev"); } else { - let default_suffix = - format!("-rust-{}-{}", channel::CFG_RELEASE_NUM, builder.config.channel); - cfg.define("LLVM_VERSION_SUFFIX", default_suffix); + let suffix = format!("-rust-{}-{}", channel::CFG_RELEASE_NUM, builder.config.channel); + cfg.define("LLVM_VERSION_SUFFIX", suffix); } if let Some(ref linker) = builder.config.llvm_use_linker { |
