Skip to content

Commit 4510df9

Browse files
committed
julia: test arm64 linux
1 parent 665ff2d commit 4510df9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

Formula/j/julia.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def install
111111
haswell,-rdrnd,base(1)
112112
x86-64-v4,-rdrnd,base(1)]
113113
end
114-
args << "JULIA_CPU_TARGET=#{cpu_targets.join(";")}"
114+
args << "JULIA_CPU_TARGET=#{cpu_targets.join(";")}" if !OS.linux? || !Hardware::CPU.arm?
115115
user = begin
116116
tap.user
117117
rescue
@@ -152,6 +152,24 @@ def install
152152

153153
system "make", *args, "install"
154154

155+
# FIXME: TESTING
156+
if OS.linux? && Hardware::CPU.arm?
157+
prefix.find do |pn|
158+
next if pn.symlink? || pn.directory?
159+
160+
ohai "Checking #{pn} dylib?"
161+
pn.dylib?
162+
163+
ohai "Checking #{pn} binary_executable?"
164+
pn.binary_executable?
165+
rescue EOFError
166+
opoo "Failed on #{pn}"
167+
logs.install pn
168+
raise
169+
end
170+
return
171+
end
172+
155173
if OS.linux?
156174
# Replace symlinks referencing Cellar paths with ones using opt paths
157175
deps.reject(&:build?).map(&:to_formula).map(&:opt_lib).each do |libdir|

0 commit comments

Comments
 (0)