diff --git a/README.md b/README.md index c9bca82ec..b3a74130f 100644 --- a/README.md +++ b/README.md @@ -243,6 +243,8 @@ Currently, the `@compat` macro supports the following syntaxes: * `Complex32`, `Complex64`, and `Complex128` are now `ComplexF16`, `ComplexF32`, and `ComplexF64`, respectively ([#24647]). +* `JULIA_HOME` is now `Sys.BINDIR`, available in the `Compat.Sys` submodule. ([#25102]) + ## New macros * `@__DIR__` has been added ([#18380]) @@ -392,3 +394,4 @@ includes this fix. Find the minimum version from there. [#24652]: https://github.com/JuliaLang/julia/issues/24652 [#24657]: https://github.com/JuliaLang/julia/issues/24657 [#24785]: https://github.com/JuliaLang/julia/issues/24785 +[#25102]: https://github.com/JuliaLang/julia/issues/25102 diff --git a/src/Compat.jl b/src/Compat.jl index 676e196f8..9d1f1a7ab 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -584,6 +584,10 @@ module Sys else import Base.Sys: isapple, isbsd, islinux, isunix, iswindows end + + @static if VERSION < v"0.7.0-DEV.3073" + const BINDIR = JULIA_HOME + end end @static if VERSION < v"0.7.0-DEV.892"