mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
👌🏻 Use heredoc for multiline xcconfig file
This commit is contained in:
parent
9d39fa75b6
commit
11a8c6cb7a
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue