Skip to content

Commit

Permalink
appledoc: don't try to build without GC
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Mar 26, 2014
1 parent ff0f88b commit 4727803
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Formula/appledoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ class Appledoc < Formula
depends_on :xcode
depends_on :macos => :lion

# Actually works with pre-503 clang, but we don't have a way to
# express this yet.
# clang 5.1 (build 503) removed support for Objective C GC, and
# there is no stable version of Appledoc with support for ARC yet.
# It's actually possible to build with GC disabled, but not advisable.
# See: https://github.com/tomaz/appledoc/issues/439
fails_with :clang

def install
xcodebuild "-project", "appledoc.xcodeproj",
"-target", "appledoc",
Expand All @@ -19,9 +27,6 @@ def install
"SYMROOT=build",
"DSTROOT=build",
"INSTALL_PATH=/bin",
# 2.2-963 no longer actually uses ObjC GC, but will still
# try to build with it due to this flag and hence will fail.
"GCC_ENABLE_OBJC_GC=unsupported",
"OTHER_CFLAGS='-DCOMPILE_TIME_DEFAULT_TEMPLATE_PATH=@\"#{prefix}/Templates\"'"
bin.install "build/bin/appledoc"
prefix.install "Templates/"
Expand Down

0 comments on commit 4727803

Please sign in to comment.