🍺 Sync recent formla changes to custom tap

This commit is contained in:
Ben Chatelain 2021-02-13 11:23:41 -07:00
parent 038a785674
commit deb075b624

View file

@ -18,19 +18,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