Skip to content

Commit 852e9de

Browse files
authored
use isdebugbuild() rather than ccalling into libjulia directly (#903)
1 parent 6772e0d commit 852e9de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/juliaconfig.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ end
1515

1616
function julia_private_libdir()
1717
if Base.DARWIN_FRAMEWORK # taken from Libdl tests
18-
if ccall(:jl_is_debugbuild, Cint, ()) != 0
18+
if isdebugbuild() != 0
1919
dirname(abspath(Libdl.dlpath(Base.DARWIN_FRAMEWORK_NAME * "_debug")))
2020
else
2121
joinpath(dirname(abspath(Libdl.dlpath(Base.DARWIN_FRAMEWORK_NAME))),"Frameworks")
2222
end
23-
elseif ccall(:jl_is_debugbuild, Cint, ()) != 0
23+
elseif isdebugbuild() != 0
2424
dirname(abspath(Libdl.dlpath("libjulia-internal-debug")))
2525
else
2626
dirname(abspath(Libdl.dlpath("libjulia-internal")))

0 commit comments

Comments
 (0)