Skip to content

Commit

Permalink
add Compat.Sys.BINDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeits committed Dec 19, 2017
1 parent 1aa2b90 commit 75458d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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
4 changes: 4 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 75458d5

Please sign in to comment.