This package contains the clang (C language) frontend for LLVM.
(development files)
+%ifnarch aarch64
%package -n lldb
Summary: LLDB
License: NCSA
%description -n lldb-devel
The package contains header files for the LLDB debugger.
+%endif
%prep
%setup -q -n llvm-%{version}.src
cd tools
echo `pwd`
gzip -dc %{SOURCE1} | tar -xf -
+%ifnarch aarch64
gzip -dc %{SOURCE2} | tar -xf -
+%endif
pwd
#cd lldb
#%patch2001 -p0
mkdir build
cd build
+%ifnarch aarch64
cmake \
-DCMAKE_C_COMPILER=/usr/bin/gcc \
-DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-DLLDB_DISABLE_LIBEDIT=1 \
-DLLDB_DISABLE_PYTHON=1 \
-DLLDB_DISABLE_CURSES=1 ..
+%else
+cmake \
+ -DCMAKE_C_COMPILER=/usr/bin/gcc \
+ -DCMAKE_CXX_COMPILER=/usr/bin/g++ \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DLLVM_ENABLE_ASSERTIONS=No \
+ -DLLVM_TARGETS_TO_BUILD='X86;ARM;AArch64' \
+ -DLLVM_BUILD_LLVM_DYLIB=1 \
+ ..
+%endif
make %{?jobs:-j%jobs}
%post -n clang -p /sbin/ldconfig
%postun -n clang -p /sbin/ldconfig
+%ifnarch aarch64
%post -n lldb -p /sbin/ldconfig
%postun -n lldb -p /sbin/ldconfig
+%endif
%clean
echo Cleaning %{buildroot}
/usr/local/include/clang/*
/usr/local/include/clang-c/*
+%ifnarch aarch64
%files -n lldb
%manifest %{name}.manifest
%defattr(-,root,root,-)
%manifest %{name}.manifest
%defattr(-,root,root,-)
/usr/local/include/lldb/*
+%endif