Skip to content

Commit 80bc1b3

Browse files
committed
symfony-cli: disable cgo for linux arm build
Signed-off-by: botantony <[email protected]>
1 parent e2ed993 commit 80bc1b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Formula/s/symfony-cli.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class SymfonyCli < Formula
1717
depends_on "composer" => :test
1818

1919
def install
20+
ENV["CGO_ENABLED"] = "0" if OS.linux? && Hardware::CPU.arm?
21+
2022
system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version} -X main.channel=stable", output: bin/"symfony")
2123
end
2224

0 commit comments

Comments
 (0)