You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustbuild: LLVM is not partially rebuilt anymore #68715
Even tiny changes like #68570 cause a full rebuild.
This is a regression from the few recent months (?).
Before that partial rebuilds worked, I remember it because I implemented them back in 2017 (#40329).
The LLVM_VERSION_SUFFIX is indeed responsible for complete rebuilds.
The intent behind PR that introduced it was to disambiguate between versions of
LLVM library that are incompatible yet previously could share the same name.
Unfortunately LLVM_APPEND_VC_REV doesn't help, since it is about stashing
version control revision information somewhere inside the library, rather than
changing the library name itself.
Removing commit SHA from default version suffix should be enough to address
the original issue while resolving this one.
Activity
cuviper commentedon Jan 31, 2020
I think it's because the git hash is set in
LLVM_VERSION_SUFFIXhere:rust/src/bootstrap/native.rs
Lines 240 to 253 in cd1ef39
This propagates to
PACKAGE_VERSIONinllvm/Config/config.h, which affects the entire build.cuviper commentedon Feb 1, 2020
There's a cmake variable
LLVM_APPEND_VC_REVthat would probably behave better for this.tmiasko commentedon Feb 23, 2020
The
LLVM_VERSION_SUFFIXis indeed responsible for complete rebuilds.The intent behind PR that introduced it was to disambiguate between versions of
LLVM library that are incompatible yet previously could share the same name.
Unfortunately
LLVM_APPEND_VC_REVdoesn't help, since it is about stashingversion control revision information somewhere inside the library, rather than
changing the library name itself.
Removing commit SHA from default version suffix should be enough to address
the original issue while resolving this one.
Rollup merge of rust-lang#69397 - tmiasko:llvm-version-suffix, r=nagisa