File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 24
24
llvm_args : ['']
25
25
include :
26
26
# starting with Julia 1.10, we can enable opaque pointers
27
+ # from Juila 1.12 on, this is the default.
27
28
- version : ' 1.10'
28
29
os : ' ubuntu-latest'
29
30
arch : ' x64'
48
49
os : ' windows-latest'
49
50
arch : ' x64'
50
51
llvm_args : ' --opaque-pointers'
51
- # - version: 'nightly'
52
- # os: 'ubuntu-latest'
53
- # arch: 'x64'
54
- # llvm_args: '--opaque-pointers'
55
- # - version: 'nightly'
56
- # os: 'macOS-latest'
57
- # arch: 'x64'
58
- # llvm_args: '--opaque-pointers'
59
- # - version: 'nightly'
60
- # os: 'windows-latest'
61
- # arch: 'x64'
62
- # llvm_args: '--opaque-pointers'
63
52
steps :
64
53
- uses : actions/checkout@v4
65
54
Original file line number Diff line number Diff line change 95
95
# XXX : it's not allowed to switch tasks while under this lock, can we guarantee that?
96
96
# its probably easier to start using our own LLVM context when that's possible.
97
97
macro locked (ex)
98
+ if VERSION >= v " 1.12.0-DEV.769"
99
+ # no need to handle locking; it's taken care of by the engine
100
+ # as long as we use a correct cache owner token.
101
+ return esc (ex)
102
+ end
103
+
98
104
def = splitdef (ex)
99
105
def[:body ] = quote
100
106
ccall (:jl_typeinf_lock_begin , Cvoid, ())
109
115
110
116
# HACK: temporarily unlock again to perform a task switch
111
117
macro unlocked (ex)
118
+ if VERSION >= v " 1.12.0-DEV.769"
119
+ return esc (ex)
120
+ end
121
+
112
122
def = splitdef (ex)
113
123
def[:body ] = quote
114
124
ccall (:jl_typeinf_lock_end , Cvoid, ())
You can’t perform that action at this time.
0 commit comments