mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Correctly generate stamp for gcc
This commit is contained in:
parent
1fd148d560
commit
3ba7992272
@ -53,8 +53,9 @@ pub fn prebuilt_gcc_config(builder: &Builder<'_>, target: TargetSelection) -> Gc
|
||||
static STAMP_HASH_MEMO: OnceLock<String> = OnceLock::new();
|
||||
let smart_stamp_hash = STAMP_HASH_MEMO.get_or_init(|| {
|
||||
generate_smart_stamp_hash(
|
||||
&builder.config.src.join("src/llvm-project"),
|
||||
builder.in_tree_llvm_info.sha().unwrap_or_default(),
|
||||
builder,
|
||||
&builder.config.src.join("src/gcc"),
|
||||
builder.in_tree_gcc_info.sha().unwrap_or_default(),
|
||||
)
|
||||
});
|
||||
|
||||
|
@ -145,6 +145,7 @@ pub struct Build {
|
||||
rustfmt_info: GitInfo,
|
||||
enzyme_info: GitInfo,
|
||||
in_tree_llvm_info: GitInfo,
|
||||
in_tree_gcc_info: GitInfo,
|
||||
local_rebuild: bool,
|
||||
fail_fast: bool,
|
||||
doc_tests: DocTests,
|
||||
@ -315,6 +316,7 @@ impl Build {
|
||||
|
||||
// we always try to use git for LLVM builds
|
||||
let in_tree_llvm_info = GitInfo::new(false, &src.join("src/llvm-project"));
|
||||
let in_tree_gcc_info = GitInfo::new(false, &src.join("src/gcc"));
|
||||
|
||||
let initial_target_libdir_str = if config.dry_run() {
|
||||
"/dummy/lib/path/to/lib/".to_string()
|
||||
@ -407,6 +409,7 @@ impl Build {
|
||||
rustfmt_info,
|
||||
enzyme_info,
|
||||
in_tree_llvm_info,
|
||||
in_tree_gcc_info,
|
||||
cc: RefCell::new(HashMap::new()),
|
||||
cxx: RefCell::new(HashMap::new()),
|
||||
ar: RefCell::new(HashMap::new()),
|
||||
|
Loading…
Reference in New Issue
Block a user