fetch submodule before checking llvm stamp

Previously, we were checking the LLVM stamp before fetching the submodule
which leads to not being able to compile llvm on submodule updates.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-03-17 13:34:42 +03:00
parent 1eb882ef6d
commit b75e6b4e7e

View file

@ -94,6 +94,7 @@ pub fn prebuilt_llvm_config(
}
}
builder.update_submodule(&Path::new("src").join("llvm-project"));
let root = "src/llvm-project/llvm";
let out_dir = builder.llvm_out(target);
@ -279,7 +280,6 @@ impl Step for Llvm {
Err(m) => m,
};
builder.update_submodule(&Path::new("src").join("llvm-project"));
if builder.llvm_link_shared() && target.is_windows() {
panic!("shared linking to LLVM is not currently supported on {}", target.triple);
}