👌🏻 Use heredoc for multiline xcconfig file

This commit is contained in:
Ben Chatelain 2018-10-20 18:20:16 -06:00
parent 9d39fa75b6
commit 11a8c6cb7a

View file

@ -20,7 +20,10 @@ class Mas < Formula
# Prevent warnings from causing build failures # Prevent warnings from causing build failures
# Prevent linker errors by telling all lib builds to use max size install names # Prevent linker errors by telling all lib builds to use max size install names
xcconfig = buildpath/"Overrides.xcconfig" xcconfig = buildpath/"Overrides.xcconfig"
xcconfig.write("GCC_TREAT_WARNINGS_AS_ERRORS = NO\nOTHER_LDFLAGS = -headerpad_max_install_names") xcconfig.write <<~EOS
GCC_TREAT_WARNINGS_AS_ERRORS = NO
OTHER_LDFLAGS = -headerpad_max_install_names
EOS
ENV["XCODE_XCCONFIG_FILE"] = xcconfig ENV["XCODE_XCCONFIG_FILE"] = xcconfig
system "carthage", "bootstrap", "--platform", "macOS" system "carthage", "bootstrap", "--platform", "macOS"