- Add s390x support
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=268
This commit is contained in:
parent
31c89f1405
commit
b8d8c7483e
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 28 11:02:06 UTC 2013 - idonmez@suse.com
|
||||
|
||||
- Add s390x support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 28 10:57:32 UTC 2013 - idonmez@suse.com
|
||||
|
||||
|
15
llvm.spec
15
llvm.spec
@ -29,6 +29,10 @@
|
||||
%define _supported_archs "PowerPC"
|
||||
%endif
|
||||
|
||||
%ifarch s390x
|
||||
%define _support_archs "SystemZ"
|
||||
%endif
|
||||
|
||||
Name: llvm
|
||||
Version: 3.3
|
||||
Release: 0
|
||||
@ -178,7 +182,7 @@ sed -i s,/lib/,/%{_lib}/,g tools/clang/lib/Driver/Tools.cpp \
|
||||
%endif
|
||||
|
||||
# Only enable target archs otherwise llvm-config is messed up
|
||||
%ifnarch ppc64 arm
|
||||
%ifnarch arm ppc64 s390x
|
||||
sed -i s,"subdirectories = .*","subdirectories = AArch64 ARM PowerPC R600 X86", lib/Target/LLVMBuild.txt
|
||||
%endif
|
||||
|
||||
@ -190,6 +194,10 @@ sed -i s,"subdirectories = .*","subdirectories = ARM", lib/Target/LLVMBuild.txt
|
||||
sed -i s,"subdirectories = .*","subdirectories = PowerPC", lib/Target/LLVMBuild.txt
|
||||
%endif
|
||||
|
||||
%ifarch s390x
|
||||
sed -i s,"subdirectories = .*","subdirectories = PowerPC", lib/Target/LLVMBuild.txt
|
||||
%endif
|
||||
|
||||
sed -i s,"IntelJITEvents OProfileJIT","", lib/ExecutionEngine/LLVMBuild.txt
|
||||
echo > utils/unittest/LLVMBuild.txt
|
||||
|
||||
@ -219,6 +227,9 @@ pushd stage1
|
||||
sed -i s,'${CMAKE_SYSTEM_PROCESSOR}','"PowerPC"',g ../cmake/modules/AddLLVM.cmake
|
||||
rm -rf ../projects/compiler-rt
|
||||
%endif
|
||||
%ifarch s390x
|
||||
%define host_triple s390x-suse-linux
|
||||
%endif
|
||||
|
||||
cmake -G "Unix Makefiles" \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
@ -269,7 +280,7 @@ cmake -G "Unix Makefiles" \
|
||||
-DLLVM_BINUTILS_INCDIR=/usr/include \
|
||||
%endif
|
||||
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
|
||||
%ifnarch arm ppc64
|
||||
%ifnarch arm ppc64 s390x
|
||||
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=%{_experimental_archs} \
|
||||
%endif
|
||||
-DLLVM_BUILD_TESTS=OFF \
|
||||
|
Loading…
x
Reference in New Issue
Block a user