From 7e1119bd1d79a7e618bb56fceef99daf57cf081d Mon Sep 17 00:00:00 2001 From: Adam Hartley Date: Thu, 2 Jul 2020 18:06:48 +0100 Subject: [PATCH] telnet: fix for Apple Silicon (#57303) Co-authored-by: Bo Anderson --- Formula/telnet.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Formula/telnet.rb b/Formula/telnet.rb index 8a3a2d818262..2e5151a9d234 100644 --- a/Formula/telnet.rb +++ b/Formula/telnet.rb @@ -25,8 +25,7 @@ def install ENV["SDKROOT"] = MacOS.sdk_path ENV["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version - # Force 64 bit-only build, otherwise it fails on Mojave - xcodebuild "SYMROOT=build", "-arch", "x86_64" + xcodebuild "SYMROOT=build", "-arch", Hardware::CPU.arch libtelnet_dst = buildpath/"telnet.tproj/build/Products" libtelnet_dst.install "build/Release/libtelnet.a" @@ -39,7 +38,7 @@ def install "DSTROOT=build/Archive", "CFLAGS=$(CC_Flags) -isystembuild/Products/", "LDFLAGS=$(LD_Flags) -Lbuild/Products/", - "RC_ARCHS=x86_64", # Force 64-bit build for Mojave + "RC_ARCHS=#{Hardware::CPU.arch}", "install" bin.install "telnet.tproj/build/Archive/usr/local/bin/telnet"