# Warnings while running tests concerning pre-compilation

**URL:** https://discourse.julialang.org/t/warnings-while-running-tests-concerning-pre-compilation/12790
**Category:** General Usage
**Tags:** package
**Created:** [August 1, 2018, 2:14pm UTC](https://discourse.julialang.org/t/warnings-while-running-tests-concerning-pre-compilation/12790 "2018-08-01T14:14:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [August 1, 2018, 2:14pm UTC](https://discourse.julialang.org/t/warnings-while-running-tests-concerning-pre-compilation/12790/1 "2018-08-01T14:14:40Z")

</div>

While running tests of my package with the release candidate 1 I got a bunch of these:

```julia
┌ Warning: __precompile__ () is now the default
│ caller = __precompile__ () at loading.jl:777
└ @ Base .\loading.jl:777

```

Is this something that will be eventually removed? Or is that up to me?

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [August 1, 2018, 2:17pm UTC](https://discourse.julialang.org/t/warnings-while-running-tests-concerning-pre-compilation/12790/2 "2018-08-01T14:17:38Z")

</div>

Delete the call to ` __precompile__ ` and the warning will go away. If you want to continue supporting both 0.6 and 0.7/1.0 without warnings, you can do something like

```julia
VERSION < v"0.7-" && __precompile__ ()

```

FemtoCleaner will automatically remove such a statement once your package declares that it only support Julia versions ≥ 0.7.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [August 1, 2018, 2:18pm UTC](https://discourse.julialang.org/t/warnings-while-running-tests-concerning-pre-compilation/12790/3 "2018-08-01T14:18:23Z")

</div>

> [@StefanKarpinski](#):
>
> ` __precompile__ `

I don’t have any of these in my package. So I guess it is coming from a dependency?

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [August 1, 2018, 2:19pm UTC](https://discourse.julialang.org/t/warnings-while-running-tests-concerning-pre-compilation/12790/4 "2018-08-01T14:19:09Z")

</div>

Yes, probably. They will have to do what I described.

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [August 1, 2018, 2:40pm UTC](https://discourse.julialang.org/t/warnings-while-running-tests-concerning-pre-compilation/12790/5 "2018-08-01T14:40:44Z")

</div>

> [@StefanKarpinski](#):
>
> `VERSION < v"0.7-" && __precompile__ ()`

Specifically, `VERSION < v"0.7.0-beta2.199"`

---

<div class="post-metadata">

### Author: ![garrison](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/garrison/32/209519_2.png) [@garrison](https://discourse.julialang.org/u/garrison)
#### Post date: [August 6, 2018, 7:06pm UTC](https://discourse.julialang.org/t/warnings-while-running-tests-concerning-pre-compilation/12790/6 "2018-08-06T19:06:35Z")

</div>

For those watching this thread: removing the ` __precompile__ ()` statement (or making it conditional based on `VERSION`) is no longer necessary now that [RFC: remove deprecation about \_\_precompile\_\_(true) by KristofferC · Pull Request #28459 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/28459) has been merged.
