Skip to content

Commit 3304d49

Browse files
authored
Merge pull request #220060 from Homebrew/cspice-arm-linux
cspice: remove `-m64` to build on arm64 linux
2 parents af879c7 + 189a598 commit 3304d49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: Formula/c/cspice.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ class Cspice < Formula
3838
def install
3939
# Use brewed csh on Linux because it is not installed in CI.
4040
unless OS.mac?
41-
Dir["src/*/*.csh"].each do |file|
42-
inreplace file, "/bin/csh", Formula["tcsh"].opt_bin/"csh"
41+
inreplace Dir["src/*/*.csh"] do |s|
42+
s.gsub! "/bin/csh", Formula["tcsh"].opt_bin/"csh"
43+
s.gsub! '= "-m64 ', '= "' if Hardware::CPU.arm?
4344
end
4445
end
4546

0 commit comments

Comments
 (0)