diff --git a/src/Compat.jl b/src/Compat.jl index 9d1f1a7ab..fb197d725 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -587,6 +587,8 @@ module Sys @static if VERSION < v"0.7.0-DEV.3073" const BINDIR = JULIA_HOME + else + const BINDIR = Base.Sys.BINDIR end end diff --git a/test/runtests.jl b/test/runtests.jl index 05afe97e0..28f81756e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -985,6 +985,13 @@ end @test ComplexF32 === Complex{Float32} @test ComplexF64 === Complex{Float64} +# 0.7.0-DEV.3073 +if VERSION < v"0.7.0-DEV.3073" + @test Compat.Sys.BINDIR == JULIA_HOME +else + @test Compat.Sys.BINDIR == Sys.BINDIR +end + if VERSION < v"0.6.0" include("deprecated.jl") end