From 11a8c6cb7a69bc2c30e3101c1b9b548b3b1c0546 Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sat, 20 Oct 2018 18:20:16 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=F0=9F=8F=BB=20Use=20heredoc=20for?= =?UTF-8?q?=20multiline=20xcconfig=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Homebrew/mas.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Homebrew/mas.rb b/Homebrew/mas.rb index 42086f9..d400ec5 100644 --- a/Homebrew/mas.rb +++ b/Homebrew/mas.rb @@ -20,7 +20,10 @@ class Mas < Formula # Prevent warnings from causing build failures # Prevent linker errors by telling all lib builds to use max size install names 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 system "carthage", "bootstrap", "--platform", "macOS"