remove lldb build from aarch64 86/84586/1 accepted/tizen/3.0/base/20161028.103019 accepted/tizen/base/20160826.072947 submit/tizen_3.0_base/20161028.062323 submit/tizen_base/20160819.102424
authorchunseoklee <chunseok.lee@samsung.com>
Fri, 19 Aug 2016 10:20:55 +0000 (19:20 +0900)
committerchunseoklee <chunseok.lee@samsung.com>
Fri, 19 Aug 2016 10:20:55 +0000 (19:20 +0900)
Change-Id: Idedb2a62aef83079884f29fec55ed08cebd48084
Signed-off-by: chunseoklee <chunseok.lee@samsung.com>
packaging/llvm.spec

index 0cad467..069060a 100644 (file)
@@ -57,6 +57,7 @@ Requires: clang = %{version}-%{release}
 This package contains the clang (C language) frontend for LLVM.
 (development files)
 
+%ifnarch aarch64
 %package -n lldb
 Summary: LLDB
 License: NCSA
@@ -74,6 +75,7 @@ Requires: lldb = %{version}-%{release}
 
 %description -n lldb-devel
 The package contains header files for the LLDB debugger.
+%endif
 
 %prep
 %setup -q -n llvm-%{version}.src
@@ -81,7 +83,9 @@ cp %{SOURCE1001} .
 cd tools
 echo `pwd`
 gzip -dc %{SOURCE1} | tar -xf -
+%ifnarch aarch64
 gzip -dc %{SOURCE2} | tar -xf -
+%endif
 pwd
 #cd lldb
 #%patch2001 -p0
@@ -92,6 +96,7 @@ pwd
 
 mkdir build
 cd build
+%ifnarch aarch64
 cmake \
     -DCMAKE_C_COMPILER=/usr/bin/gcc \
     -DCMAKE_CXX_COMPILER=/usr/bin/g++ \
@@ -102,6 +107,16 @@ cmake \
     -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}
 
@@ -115,8 +130,10 @@ rm -rf %{buildroot}/usr/local/lib/lib*.a
 %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}
@@ -205,6 +222,7 @@ echo Cleaning %{buildroot}
 /usr/local/include/clang/*
 /usr/local/include/clang-c/*
 
+%ifnarch aarch64
 %files -n lldb
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
@@ -222,3 +240,4 @@ echo Cleaning %{buildroot}
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 /usr/local/include/lldb/*
+%endif