Skip to content

Commit 380b617

Browse files
authored
Use OS and arch only instead of triplets (#54)
1 parent dcbf013 commit 380b617

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

deps/build.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ const URL = "https://github.com/ararslan/openspecfun-builder/releases/download/v
1717
"/libopenspecfun-$OSF_VERS"
1818

1919
const DOWNLOADS = Dict(
20-
"x86_64-pc-linux-gnu" => ("$URL-linux-x86_64.tar.gz",
21-
"d70a2a391915f64f44da21915bf93ce08d054127028088addca36e16ac53bcb1"),
22-
"i686-pc-linux-gnu" => ("$URL-linux-i686.tar.gz",
23-
"e5418b170b537af2f7f1f1d06eee9be01555404f5d22a47e18bc06a540321478"),
24-
"x86_64-apple-darwin" => ("$URL-osx-x86_64.tar.gz",
25-
"e57f5f84439757a2fd1d3821a6e19a3fa69b5b1e181cc40fec0d1652fbb9efdc"),
26-
"x86_64-w64-mingw32" => ("$URL-win-x86_64.zip",
27-
"7a5f7be4ed46d7f9d6d18a599157075512c50a372da2b2908079a3dcab9a0f25"),
28-
"i686-w64-mingw32" => ("$URL-win-i686.zip",
29-
"2f63a08d80e67964e2c368367f4caef7039080828e217d288669416cd46f4584"),
20+
"Linux-x86_64" => ("$URL-linux-x86_64.tar.gz",
21+
"d70a2a391915f64f44da21915bf93ce08d054127028088addca36e16ac53bcb1"),
22+
"Linux-i686" => ("$URL-linux-i686.tar.gz",
23+
"e5418b170b537af2f7f1f1d06eee9be01555404f5d22a47e18bc06a540321478"),
24+
"Darwin-x86_64" => ("$URL-osx-x86_64.tar.gz",
25+
"e57f5f84439757a2fd1d3821a6e19a3fa69b5b1e181cc40fec0d1652fbb9efdc"),
26+
"Windows-x86_64" => ("$URL-win-x86_64.zip",
27+
"7a5f7be4ed46d7f9d6d18a599157075512c50a372da2b2908079a3dcab9a0f25"),
28+
"Windows-i686" => ("$URL-win-i686.zip",
29+
"2f63a08d80e67964e2c368367f4caef7039080828e217d288669416cd46f4584"),
3030
)
3131

32-
const MACHINE = Compat.Sys.isapple() ? "x86_64-apple-darwin" : Sys.MACHINE
32+
const SYSTEM = string(BinDeps.OSNAME, '-', Sys.ARCH)
3333

34-
if haskey(DOWNLOADS, MACHINE)
35-
url, sha = DOWNLOADS[MACHINE]
34+
if haskey(DOWNLOADS, SYSTEM)
35+
url, sha = DOWNLOADS[SYSTEM]
3636
provides(Binaries, URI(url), openspecfun, SHA=sha, os=BinDeps.OSNAME,
3737
unpacked_dir=joinpath("usr", "lib"), installed_libpath=libdir(openspecfun))
3838
else

deps/scratch.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if libm == "libopenlibm"
1717

1818
# Copy over the OpenLibm .so
1919
cp(openlibm_so, joinpath(libdir(openspecfun), basename(openlibm_so)),
20-
remove_destination=true)
20+
remove_destination=true, follow_symlinks=true)
2121

2222
if !isdir(srcdir(openspecfun))
2323
mkpath(srcdir(openspecfun))
@@ -43,12 +43,12 @@ if libm == "libopenlibm"
4343
end
4444
for f in readdir(joinpath(openlibm_src, "include"))
4545
cp(joinpath(openlibm_src, "include", f), joinpath(openlibm_include, f),
46-
remove_destination=true)
46+
remove_destination=true, follow_symlinks=true)
4747
end
4848
for f in readdir(joinpath(openlibm_src, "src"))
4949
if endswith(f, ".h")
5050
cp(joinpath(openlibm_src, "src", f), joinpath(openlibm_include, f),
51-
remove_destination=true)
51+
remove_destination=true, follow_symlinks=true)
5252
end
5353
end
5454
else

0 commit comments

Comments
 (0)