Skip to content

Commit 2c32557

Browse files
Remove Requires dependency (#485)
1 parent c21f11a commit 2c32557

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ LLVMExtra_jll = "dad2f222-ce93-54a1-a47d-0025e8a3acab"
88
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
99
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
1010
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
11-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1211
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
1312

1413
[weakdeps]
@@ -24,7 +23,6 @@ LLVMExtra_jll = "=0.0.34"
2423
Libdl = "1.8"
2524
Preferences = "1.4"
2625
Printf = "1.8"
27-
Requires = "1.3"
2826
Unicode = "1.8"
2927
julia = "1.10"
3028

ext/BFloat16sExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module BFloat16sExt
33
using LLVM
44
using LLVM: API
55

6-
isdefined(Base, :get_extension) ? (using BFloat16s) : (using ..BFloat16s)
6+
using BFloat16s
77

88
## constant values
99

src/LLVM.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ using Libdl
77

88
using CEnum
99

10-
if !isdefined(Base, :get_extension)
11-
using Requires: @require
12-
end
13-
1410

1511
## source code includes
1612

@@ -119,12 +115,6 @@ function __init__()
119115
Please re-compile Julia and LLVM.jl (but note that USE_SYSTEM_LLVM is not a supported configuration)."""
120116
end
121117

122-
@static if !isdefined(Base, :get_extension)
123-
@require BFloat16s = "ab4f0b2a-ad5b-11e8-123f-65d77653426b" begin
124-
include("../ext/BFloat16sExt.jl")
125-
end
126-
end
127-
128118
_install_handlers()
129119
atexit(report_leaks)
130120
end

0 commit comments

Comments
 (0)