Skip to content

Commit 6584924

Browse files
KristofferCstevengj
authored andcommitted
fix deprecation of Compat.KERNEL (#49)
1 parent 3b28783 commit 6584924

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

deps/build.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
using BinDeps
2-
using Compat
32

43
vers = "20U1"
54

65
url="https://bintray.com/artifact/download/julialang/generic/"
76
tagfile = "installed_vers"
87
target = "libbid$(Sys.WORD_SIZE).$(Libdl.dlext)"
98
if !isfile(tagfile) || !isfile(target) || readchomp(tagfile) != "$vers:$(Sys.WORD_SIZE)"
10-
if Compat.KERNEL == :NT
9+
if Sys.KERNEL == :NT
1110
# binary for Windows was cross-compiled with mingw using:
1211
# 32-bit: CC_NAME_INDEX=3 CC_INDEX=3 _HOST_OS=Windows_NT _HOST_ARCH=x86 _NUM_CPUS=1 CC=i686-w64-mingw32-gcc CFLAGS_OPT="-O2 -DBID_THREAD= -DBID_MS_FLAGS" CALL_BY_REF=0 GLOBAL_RND=1 GLOBAL_FLAGS=1 UNCHANGED_BINARY_FLAGS=1
1312
# 64-bit: CC_NAME_INDEX=3 CC_INDEX=3 _HOST_OS=Windows_NT _HOST_ARCH=x86_64 _NUM_CPUS=1 CC=x86_64-w64-mingw32-gcc CFLAGS_OPT="-O2 -DBID_THREAD= -DBID_MS_FLAGS" CALL_BY_REF=0 GLOBAL_RND=1 GLOBAL_FLAGS=1 UNCHANGED_BINARY_FLAGS=1
@@ -16,7 +15,7 @@ if !isfile(tagfile) || !isfile(target) || readchomp(tagfile) != "$vers:$(Sys.WOR
1615
# libbid.dll: $(ALL_BID_OBJS)
1716
# $(CC) -shared -o $@ $(ALL_BID_OBJS)
1817
run(download_cmd(url*"libbid$(Sys.WORD_SIZE)-$vers.dll", target))
19-
elseif Compat.KERNEL == :Darwin
18+
elseif Sys.KERNEL == :Darwin
2019
run(download_cmd(url*"libbid$(Sys.WORD_SIZE)-$vers.dylib", target))
2120
else
2221
tarball = "IntelRDFPMathLib$vers.tar.gz"

0 commit comments

Comments
 (0)