Skip to content

Commit cab6b54

Browse files
committed
fix
1 parent 36ec61a commit cab6b54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ptx.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ function llvm_machine(target::PTXCompilerTarget)
4848
triple = llvm_triple(target)
4949

5050
# Julia does not ship NVPTX support in its LLVM on Apple
51+
# We fail to run passes therefore during a cross compile on Apple
52+
# In that case, just use the local machine triple (since we can't
53+
# run nvptx locally anyways, and the only use case is a cross
54+
# compile to local architectures).
5155
t = @static if !Sys.isapple()
5256
Target(triple=triple)
5357
else
54-
Target(triple="")
58+
Target(triple=Sys.MACHINE)
5559
end
5660

5761

0 commit comments

Comments
 (0)