📦 Update Homebrew formula

This commit is contained in:
Chris Araman 2021-01-28 14:06:44 -08:00
parent e8cdd18748
commit da7dda1ac7

View file

@ -14,19 +14,16 @@ class Mas < Formula
end
depends_on "carthage" => :build
depends_on xcode: ["10.2", :build]
depends_on xcode: ["11.4", :build]
def install
# Working around build issues in dependencies
# - Prevent warnings from causing build failures
# - Prevent linker errors by telling all lib builds to use max size install names
# - Ensure dependencies build for the current CPU; otherwise Commandant will
# build for x86_64 when running arm64
xcconfig = buildpath/"Overrides.xcconfig"
xcconfig.write <<~EOS
GCC_TREAT_WARNINGS_AS_ERRORS = NO
OTHER_LDFLAGS = -headerpad_max_install_names
VALID_ARCHS = #{Hardware::CPU.arch}
EOS
ENV["XCODE_XCCONFIG_FILE"] = xcconfig