Skip to content

Commit

Permalink
Skip some methods on Apple, we already link compiler-rt there.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 11, 2020
1 parent 6cc07c9 commit 89d99a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions base/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ end
include("osutils.jl")
include("c.jl")

# run-time library
include("runtime/runtime.jl")
using .Runtime

# Core I/O
include("io.jl")
include("iobuffer.jl")
Expand Down Expand Up @@ -224,6 +220,10 @@ include("sysinfo.jl")
include("libc.jl")
using .Libc: getpid, gethostname, time

# run-time library
include("runtime/runtime.jl")
using .Runtime

include("env.jl")

# Concurrency
Expand Down
14 changes: 9 additions & 5 deletions base/runtime/runtime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ function truncsfhf2(val::Float32)
end
reinterpret(Float16, h)
end
@ccallable Float16 __truncsfhf2(val::Float32) = truncsfhf2(val)
@ccallable Float16 __gnu_f2h_ieee(val::Float32) = truncsfhf2(val)
@ccallable Float16 __truncdfhf2(x::Float64) = truncsfhf2(Float32(x))
if !Sys.isapple()
@ccallable Float16 __truncsfhf2(val::Float32) = truncsfhf2(val)
@ccallable Float16 __gnu_f2h_ieee(val::Float32) = truncsfhf2(val)
@ccallable Float16 __truncdfhf2(x::Float64) = truncsfhf2(Float32(x))
end

# extension
function extendhfsf2(val::Float16)
Expand Down Expand Up @@ -121,8 +123,10 @@ function extendhfsf2(val::Float16)
end
return reinterpret(Float32, ret)
end
@ccallable Float32 __extendhfsf2(val::Float16) = extendhfsf2(val)
@ccallable Float32 __gnu_h2f_ieee(val::Float16) = extendhfsf2(val)
if !Sys.isapple()
@ccallable Float32 __extendhfsf2(val::Float16) = extendhfsf2(val)
@ccallable Float32 __gnu_h2f_ieee(val::Float16) = extendhfsf2(val)
end
@ccallable Float64 __extendhfdf2(x::Float16) = Float64(extendhfdf2(x))

end

0 comments on commit 89d99a2

Please sign in to comment.