# How to build Mojo with commits?

**URL:** <https://forum.modular.com/t/how-to-build-mojo-with-commits/1663>\
**Category:** Mojo\
**Created:** [June 16, 2025, 5:59am UTC](https://forum.modular.com/t/how-to-build-mojo-with-commits/1663 "2025-06-16T05:59:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![notooth](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@notooth](https://forum.modular.com/u/notooth)\
**Post date:** [June 16, 2025, 5:59am UTC](https://forum.modular.com/t/how-to-build-mojo-with-commits/1663/1 "2025-06-16T05:59:02Z")

</div>

Can anyone guide me build the latest version of Mojo with some specific commits on Github?

---

<div class="post-metadata">

**Author:** ![BradLarson](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/bradlarson/32/62_2.png) [@BradLarson](https://forum.modular.com/u/BradLarson)\
**Post date:** [June 16, 2025, 3:09pm UTC](https://forum.modular.com/t/how-to-build-mojo-with-commits/1663/2 "2025-06-16T15:09:43Z")

</div>

Are you asking about the Mojo standard library? The Mojo compiler itself isn’t yet buildable externally, but the standard library is.

For building the standard library, we’re recommending people move to using Bazel as a build system. To build with Bazel, clone the `modular` repository locally and run

```bash
./bazelw build //mojo/stdlib/stdlib

```

Once that completes, you’ll have a new Mojo package for the standard library in your Bazel build products directory. To get the Mojo compiler to use this new library, set the following environment variable:

```bash
export MODULAR_MOJO_MAX_IMPORT_PATH=[...]/modular/bazel-bin/

```

(Replacing the first part of that path with the actual path to your `modular` checkout.)

That should let the Mojo compiler use whatever changes you’ve made to your local standard library.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/2751e0fbdc595a99718b216730957e9db4448cfd.jpeg) [@system](https://forum.modular.com/u/system)\
**Post date:** [December 13, 2025, 3:09pm UTC](https://forum.modular.com/t/how-to-build-mojo-with-commits/1663/3 "2025-12-13T15:09:54Z")

</div>

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