# How to disable precompile statements while building Julia?

**URL:** https://discourse.julialang.org/t/how-to-disable-precompile-statements-while-building-julia/103461
**Category:** General Usage
**Tags:** build, julia, precompile
**Created:** [September 2, 2023, 7:41am UTC](https://discourse.julialang.org/t/how-to-disable-precompile-statements-while-building-julia/103461 "2023-09-02T07:41:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)
#### Post date: [September 2, 2023, 7:41am UTC](https://discourse.julialang.org/t/how-to-disable-precompile-statements-while-building-julia/103461/1 "2023-09-02T07:41:57Z")

</div>

I have added a `Make.user` with the content

```julia
$ cat Make.user
JULIA_PRECOMPILE ?= 0

```

but when I build Julia (using `make`), I find

```julia
Collecting and executing precompile statements
└ Collect (Basic: ✓ 871, REPL 39/39: ✓ 1862) => Execute ✓ 1997
Precompilation complete. Summary:
Total ─────── 200.527412 seconds

```

My impression was that these would be skipped, which would cut down the build time by 3+ minutes. How do I disable the precompile statement generation?

---

<div class="post-metadata">

### Author: ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)
#### Post date: [September 2, 2023, 8:33am UTC](https://discourse.julialang.org/t/how-to-disable-precompile-statements-while-building-julia/103461/2 "2023-09-02T08:33:10Z")

</div>

Changing the line in `Make.inc` appears to work

---

<div class="post-metadata">

### Author: ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)
#### Post date: [September 2, 2023, 12:15pm UTC](https://discourse.julialang.org/t/how-to-disable-precompile-statements-while-building-julia/103461/3 "2023-09-02T12:15:24Z")

</div>

Try `JULIA_PRECOMPILE = 0`. I think `Make.user` is read after the relevant line in `Make.inc` has been evaluated; thus `?=` does nothing, because the variable already has a value.
