Skip to content

Commit

Permalink
Move UnsafeAtomicsLLVM to be a package extension
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Nov 28, 2024
2 parents 934c34d + fb9fda0 commit 4a3d704
Show file tree
Hide file tree
Showing 7 changed files with 728 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
strategy:
matrix:
julia-version:
- '1.6'
- '~1.7.0-beta4'
- '1.10'
- '1.11'
- '~1.12.0-dev'
- 'nightly'
fail-fast: false
name: Test Julia ${{ matrix.julia-version }}
Expand All @@ -38,7 +39,7 @@ jobs:
matrix:
julia-version:
- '1'
- '1.6'
- '1.10'
- 'nightly'
fail-fast: false
steps:
Expand Down
14 changes: 11 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name = "UnsafeAtomics"
uuid = "013be700-e6cd-48c3-b4a1-df204f14c38f"
authors = ["Takafumi Arakaki <[email protected]> and contributors"]
version = "0.2.2-DEV"
version = "0.3.0"

[weakdeps]
LLVM = "929cbde3-209d-540e-8aea-75f648917ca0"

[extensions]
UnsafeAtomicsLLVM = ["LLVM"]

[compat]
julia = "1.6"
LLVM = "8.1, 9"
julia = "1.10"

[extras]
LLVM = "929cbde3-209d-540e-8aea-75f648917ca0"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestFunctionRunner = "792026f5-ac9a-4a19-adcb-47b0ce2deb5d"

[targets]
test = ["Test", "TestFunctionRunner"]
test = ["Test", "TestFunctionRunner", "LLVM"]
13 changes: 13 additions & 0 deletions ext/UnsafeAtomicsLLVM/UnsafeAtomicsLLVM.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
baremodule UnsafeAtomicsLLVM

module Internal

using Core: LLVMPtr
using LLVM
using UnsafeAtomics: UnsafeAtomics, Ordering

include("internal.jl")

end # module Internal

end # baremodule UnsafeAtomicsLLVM
Loading

0 comments on commit 4a3d704

Please sign in to comment.