File tree Expand file tree Collapse file tree 2 files changed +13
-24
lines changed Expand file tree Collapse file tree 2 files changed +13
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ %ifarch %ix86 x86_64
2
+ # ARM/AARCH64 enabled due to rhbz#1627500
3
+ #global llvm_targets X86;AMDGPU;NVPTX;BPF;ARM;AArch64
4
+ %global llvm_targets X86;AMDGPU;NVPTX;BPF
5
+ %endif
6
+ %ifarch aarch64
7
+ %global llvm_targets AArch64;AMDGPU;BPF
8
+ %endif
9
+ %ifarch %{arm }
10
+ %global llvm_targets ARM;AMDGPU;BPF
11
+ %endif
12
+
1
13
Name: llvm
2
14
Version: 7.0.1
3
15
Release: 0
@@ -6,7 +18,6 @@ License: University of Illinois/NCSA Open Source License
6
18
Group: Development/Tools
7
19
URL: http://llvm.org/
8
20
Source: %{version }/%{name }-%{version }.tar.gz
9
- Source1: LLVMBuild.txt
10
21
Patch1: nosse4-avx.patch
11
22
Requires(post): /sbin/ldconfig
12
23
Requires(postun): /sbin/ldconfig
@@ -33,7 +44,6 @@ LLVM Header files
33
44
34
45
%prep
35
46
%setup -q -n %{name }-%{version }/%{name }/llvm
36
- cp %{_sourcedir }/LLVMBuild.txt projects/
37
47
38
48
%build
39
49
@@ -52,7 +62,7 @@ pushd build
52
62
-DLLVM_INCLUDE_EXAMPLES:BOOL= OFF \
53
63
-DLLVM_INCLUDE_TEST:BOOL= OFF \
54
64
-DLLVM_LINK_LLVM_DYLIB:BOOL= OFF \
55
- -DLLVM_TARGETS_TO_BUILD= Native \
65
+ -DLLVM_TARGETS_TO_BUILD= "%{ llvm_targets }" \
56
66
-DLLVM_TOOLS_BINARY_DIR:PATH= %{_bindir }
57
67
58
68
# Jobs limited to 4 to prevent OBS from running out of memory
You can’t perform that action at this time.
0 commit comments