# Rust git build with llvm-project

**URL:** <https://internals.rust-lang.org/t/rust-git-build-with-llvm-project/17544>\
**Category:** Uncategorized\
**Created:** [October 12, 2022, 6:36am UTC](https://internals.rust-lang.org/t/rust-git-build-with-llvm-project/17544 "2022-10-12T06:36:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MJU](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/mju/32/9772_2.png) [@MJU](https://internals.rust-lang.org/u/MJU)\
**Post date:** [October 12, 2022, 6:36am UTC](https://internals.rust-lang.org/t/rust-git-build-with-llvm-project/17544/1 "2022-10-12T06:36:13Z")

</div>

Hi all!

I wonder that llvm-project directory in rust repository. According to the guide, when i modify the source code in llvm-project, it needs to build again after deleting the build folder. Is there a command or option to build only the modified part without deleting the build folder?

Have a nice day 🙂

---

<div class="post-metadata">

**Author:** ![cuviper](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/cuviper/32/1897_2.png) [@cuviper](https://internals.rust-lang.org/u/cuviper)\
**Post date:** [October 13, 2022, 2:54am UTC](https://internals.rust-lang.org/t/rust-git-build-with-llvm-project/17544/2 "2022-10-13T02:54:38Z")

</div>

There's a stamp file named `llvm-finished-building` under the build directory -- if you find and remove that, the rust build will invoke LLVM cmake again. That should allow an incremental rebuild, to the best of cmake's ability.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [January 11, 2023, 2:54am UTC](https://internals.rust-lang.org/t/rust-git-build-with-llvm-project/17544/3 "2023-01-11T02:54:46Z")

</div>

Closed on January 11, 2023, 2:54am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
