Skip to content

Commit 79a32f1

Browse files
committed
qualify paths for different platforms
1 parent 6dc7ef1 commit 79a32f1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Quadmath.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ import Base: (*), +, -, /, <, <=, ==, ^, convert,
1818
abs, imag, real, conj, angle, cis,
1919
eps, realmin, realmax, isinf, isnan, isfinite
2020

21-
22-
const libquadmath = "libquadmath.0"
21+
if is_apple()
22+
const libquadmath = "libquadmath.0"
23+
elseif is_unix()
24+
const libquadmath = "libquadmath.so.0"
25+
elseif is_windows()
26+
const libquadmath = "libquadmath-0.dll"
27+
end
2328

2429
# we use this slightly cumbersome definition to ensure that the value is passed
2530
# on the xmm registers, matching the x86_64 ABI for __float128.

0 commit comments

Comments
 (0)