Skip to content

Commit ce7313d

Browse files
committed
Load our new deps.jl from BinaryProvider
1 parent a76380f commit ce7313d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/DecFP.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ end
2222

2323
export Dec32, Dec64, Dec128, @d_str, @d32_str, @d64_str, @d128_str
2424

25-
const libbid = joinpath(dirname(@__FILE__), "..", "deps", "libbid$(Sys.WORD_SIZE)")
25+
# Load libbid from our deps.jl
26+
const depsjl_path = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
27+
if !isfile(depsjl_path)
28+
error("DecFP not installed properly, run Pkg.build(\"DecFP\"), restart Julia and try again")
29+
end
30+
include(depsjl_path)
2631

2732
const _buffer = fill(0x00, 1024)
2833

0 commit comments

Comments
 (0)