Handle move of cpu_model.c
This happened in https://github.com/llvm/llvm-project/pull/75635/files and shows up when building against a recent commit of LLVM.
This commit is contained in:
parent
bb30119076
commit
45a113effb
1 changed files with 6 additions and 1 deletions
|
|
@ -602,7 +602,12 @@ mod c {
|
|||
build_aarch64_out_of_line_atomics_libraries(&src_dir, cfg);
|
||||
|
||||
// Some run-time CPU feature detection is necessary, as well.
|
||||
sources.extend(&[("__aarch64_have_lse_atomics", "cpu_model.c")]);
|
||||
let cpu_model_src = if src_dir.join("cpu_model.c").exists() {
|
||||
"cpu_model.c"
|
||||
} else {
|
||||
"cpu_model/aarch64.c"
|
||||
};
|
||||
sources.extend(&[("__aarch64_have_lse_atomics", cpu_model_src)]);
|
||||
}
|
||||
|
||||
let mut added_sources = HashSet::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue