-
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=388
This commit is contained in:
parent
0d410d6558
commit
1cdbd51efb
@ -319,9 +319,7 @@ ln -s lib lib64
|
|||||||
# cmake files
|
# cmake files
|
||||||
rm CMakeCache.txt
|
rm CMakeCache.txt
|
||||||
cmake -G "Ninja" \
|
cmake -G "Ninja" \
|
||||||
%ifnarch ppc64 ppc64le
|
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
%endif
|
|
||||||
%ifarch %arm ppc64 ppc64le
|
%ifarch %arm ppc64 ppc64le
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
%else
|
%else
|
||||||
@ -332,10 +330,12 @@ cmake -G "Ninja" \
|
|||||||
%ifarch armv6hl
|
%ifarch armv6hl
|
||||||
-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
|
-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
|
||||||
-DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
|
-DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
|
||||||
|
-DLLVM_DEFAULT_TARGET_TRIPLE=armv6-unknown-linux-gnueabihf \
|
||||||
%endif
|
%endif
|
||||||
%ifarch armv7hl
|
%ifarch armv7hl
|
||||||
-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
|
-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
|
||||||
-DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
|
-DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
|
||||||
|
-DLLVM_DEFAULT_TARGET_TRIPLE=armv7l-unknown-linux-gnueabihf \
|
||||||
%endif
|
%endif
|
||||||
%if "%{_lib}" == "lib64"
|
%if "%{_lib}" == "lib64"
|
||||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||||
@ -519,9 +519,6 @@ rm %{buildroot}%{_mandir}/man1/lit.1
|
|||||||
%exclude %{_libdir}/libclang.so
|
%exclude %{_libdir}/libclang.so
|
||||||
%{_libdir}/libclang*.so
|
%{_libdir}/libclang*.so
|
||||||
%{_libdir}/libclang.so.*
|
%{_libdir}/libclang.so.*
|
||||||
%ifarch ppc64 ppc64le
|
|
||||||
%{_libdir}/libclang*.a
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files clang-devel
|
%files clang-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user