Skip to content

Commit b75e6b4

Browse files
committed
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 <[email protected]>
1 parent 1eb882e commit b75e6b4

File tree

1 file changed

+1
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/build_steps/llvm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ pub fn prebuilt_llvm_config(
9494
}
9595
}
9696

97+
builder.update_submodule(&Path::new("src").join("llvm-project"));
9798
let root = "src/llvm-project/llvm";
9899
let out_dir = builder.llvm_out(target);
99100

@@ -279,7 +280,6 @@ impl Step for Llvm {
279280
Err(m) => m,
280281
};
281282

282-
builder.update_submodule(&Path::new("src").join("llvm-project"));
283283
if builder.llvm_link_shared() && target.is_windows() {
284284
panic!("shared linking to LLVM is not currently supported on {}", target.triple);
285285
}

0 commit comments

Comments
 (0)