From f399eaccf3e0db61a70af55571f3d37ce97937fe Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Mon, 21 Nov 2016 19:32:55 -0500 Subject: [PATCH] llnode: fix lldb resource for Xcode < 8.0. Closes #7137. Signed-off-by: Mike McQuaid --- Formula/llnode.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Formula/llnode.rb b/Formula/llnode.rb index f69abd2f11..7bd7fb93d6 100644 --- a/Formula/llnode.rb +++ b/Formula/llnode.rb @@ -20,8 +20,17 @@ class Llnode < Formula end resource "lldb" do - url "https://github.com/llvm-mirror/lldb.git", - :revision => "839b868e2993dcffc7fea898a1167f1cec097a82" + if MacOS::Xcode.version >= "8.0" + # lldb 360.1 + url "https://github.com/llvm-mirror/lldb.git", + :revision => "839b868e2993dcffc7fea898a1167f1cec097a82" + else + # It claims it to be lldb 350.0 for Xcode 7.3, but in fact it is based + # of 34. + # Xcode < 7.3 uses 340.4, so I assume we should be safe to go with this. + url "http://llvm.org/svn/llvm-project/lldb/tags/RELEASE_34/final/", + :using => :svn + end end def install