Summary: Next generation high-performance debugger - experimental trunk snapshot
License: NCSA
URL: http://lldb.llvm.org/
ExclusiveArch: x86_64
Summary: Next generation high-performance debugger - experimental trunk snapshot
License: NCSA
URL: http://lldb.llvm.org/
ExclusiveArch: x86_64
%if 0%{?rhel:1} && 0%{?rhel} <= 7
BuildRequires: llvm-toolset-7-cmake devtoolset-8-gcc-c++ python-devel python2-pyyaml
# https://bugzilla.redhat.com/show_bug.cgi?id=1511892
%global __cmake /opt/rh/llvm-toolset-7/root/usr/bin/cmake3
%global ninjabuild ninja-build
%else
%if 0%{?rhel:1} && 0%{?rhel} <= 7
BuildRequires: llvm-toolset-7-cmake devtoolset-8-gcc-c++ python-devel python2-pyyaml
# https://bugzilla.redhat.com/show_bug.cgi?id=1511892
%global __cmake /opt/rh/llvm-toolset-7/root/usr/bin/cmake3
%global ninjabuild ninja-build
%else
-git clone --depth 1 --no-tags --single-branch --reference-if-able reference https://github.com/llvm/llvm-project.git .
+OPTS="--depth 10000"
+%if !0%{?rhel:1} || 0%{?rhel} > 7
+ OPTS="$OPTS --no-tags"
+%endif
+REF="reference"
+# RHEL-7 does not support: --reference-if-able
+test -d ../$REF/ && OPTS="$OPTS --reference ../$REF"
+# 2500 = 1 month in 2019
+git clone --single-branch $OPTS https://github.com/llvm/llvm-project.git .
-git remote add jankratochvil git://git.jankratochvil.net/lldb
-git fetch jankratochvil
+#git remote add jankratochvil git://git.jankratochvil.net/lldb
+git remote add jankratochvil https://github.com/jankratochvil/llvm-project.git
+git fetch $OPTS jankratochvil