# Precompile for 0.6 without deprecation warning

**URL:** <https://discourse.julialang.org/t/precompile-for-0-6-without-deprecation-warning/12903>\
**Category:** General Usage\
**Created:** [August 4, 2018, 11:01pm UTC](https://discourse.julialang.org/t/precompile-for-0-6-without-deprecation-warning/12903 "2018-08-04T23:01:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [August 4, 2018, 11:01pm UTC](https://discourse.julialang.org/t/precompile-for-0-6-without-deprecation-warning/12903/1 "2018-08-04T23:01:19Z")

</div>

Currently there is a deprecation warning thrown for ` __precompile__ (true)` functions at the start of packages.

This warning makes it difficult to have packages that are compatible with both v0.6 and v0.7 that do not throw warnings in 0.7. If the ` __precompile__ ` statement is removed to silence the warning, the package will not precompile in 0.6.

What is the recommended course of action here?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [August 4, 2018, 11:02pm UTC](https://discourse.julialang.org/t/precompile-for-0-6-without-deprecation-warning/12903/2 "2018-08-04T23:02:59Z")

</div>

`if VERSION < v"0.7-"`?

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [August 4, 2018, 11:04pm UTC](https://discourse.julialang.org/t/precompile-for-0-6-without-deprecation-warning/12903/3 "2018-08-04T23:04:56Z")

</div>

lol I feel so stupid, I don’t know why I didn’t do that.

I think it’s a combination of trying to use `Compat` for everything and being awake too long. That’s my excuse 😆

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [August 4, 2018, 11:11pm UTC](https://discourse.julialang.org/t/precompile-for-0-6-without-deprecation-warning/12903/4 "2018-08-04T23:11:57Z")

</div>

More specifically, `VERSION < v"0.7.0-beta2.199" && __precompile__ ()` if you want to make sure it still works on the versions of 0.7 before the ` __precompile__ ()` change.
