Skip to content

Commit

Permalink
Use CRlibm_jll (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Nov 27, 2020
1 parent d0e3be1 commit be395be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 47 deletions.
7 changes: 4 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name = "CRlibm"
uuid = "96374032-68de-5a5b-8d9e-752f78720389"
version = "0.8.0"
version = "1.0.0"

[deps]
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
CRlibm_jll = "4e9b3aee-d8a1-5a3d-ad8b-7d824db253f0"

[compat]
julia = "1"
CRlibm_jll = "1"
julia = "1.3"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
27 changes: 0 additions & 27 deletions deps/build.jl

This file was deleted.

18 changes: 1 addition & 17 deletions src/CRlibm.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
__precompile__(true)
module CRlibm

using Libdl
using CRlibm_jll

"""
setup(use_MPFR=false)
Expand All @@ -18,16 +17,6 @@ Options:
"""
function setup(use_MPFR=false)

# Ensure library is available:
if (Libdl.dlopen_e(libcrlibm) == C_NULL)
@warn("CRlibm is falling back to use MPFR; it will have
the same functionality, but with slower execution.
This is currently the only option on Windows.")

use_MPFR = true
end

wrap_MPFR()

if use_MPFR
Expand Down Expand Up @@ -167,11 +156,6 @@ const MPFR_function_names = split("""exp expm1 log log1p log2 log10

const MPFR_functions = map(Symbol, MPFR_function_names)



unixpath = "../deps/src/crlibm-1.0beta4/libcrlibm"
const libcrlibm = joinpath(dirname(@__FILE__), unixpath)

use_MPFR = setup()

end # module

2 comments on commit be395be

@dpsanders
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/25527

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.0 -m "<description of version>" be395be3a8e251e8cdd408ae98e07f1b0d788317
git push origin v1.0.0

Please sign in to comment.