Skip to content

Commit 921c272

Browse files
committed
julia: test arm64 linux
1 parent 665ff2d commit 921c272

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Formula/j/julia.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ 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+
if OS.linux? && Hardware::CPU.arm?
115+
args << "prefix=#{libexec}" # skip clean
116+
else
117+
args << "JULIA_CPU_TARGET=#{cpu_targets.join(";")}"
118+
end
115119
user = begin
116120
tap.user
117121
rescue
@@ -152,6 +156,9 @@ def install
152156

153157
system "make", *args, "install"
154158

159+
# FIXME: TESTING
160+
return if OS.linux? && Hardware::CPU.arm?
161+
155162
if OS.linux?
156163
# Replace symlinks referencing Cellar paths with ones using opt paths
157164
deps.reject(&:build?).map(&:to_formula).map(&:opt_lib).each do |libdir|

0 commit comments

Comments
 (0)