File tree Expand file tree Collapse file tree 5 files changed +41
-2
lines changed Expand file tree Collapse file tree 5 files changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:`pwd`/llvm/%{_vpath_builddir}/%{_lib}
39
39
40
40
cd llvm
41
41
42
+ # region LLVM lit
43
+ pushd utils /lit
44
+ %py3_build
45
+ popd
46
+ # endregion
47
+
42
48
%if 0 %{?rhel } == 8
43
49
%undefine __cmake_in_source_build
44
50
%endif
Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ function test_list_to_regex()
69
69
}
70
70
# endregion
71
71
72
+ # region Test LLVM lit
73
+ reset_test_opts
74
+ %cmake_build --target check-lit
75
+ # endregion
76
+
72
77
# region Test LLVM
73
78
reset_test_opts
74
79
# Xfail testing of update utility tools
Original file line number Diff line number Diff line change
1
+ # region LLVM lit files
2
+ %files -n python3 -lit
3
+ %license llvm /utils /lit /LICENSE . TXT
4
+ %doc llvm /utils /lit /README . rst
5
+ %{python3_sitelib }/lit /
6
+ %{python3_sitelib }/lit -*-info /
7
+ %{_bindir }/lit
8
+ # endregion
9
+
1
10
# region LLVM files
2
11
3
12
%files -n %{pkg_name_llvm }
Original file line number Diff line number Diff line change 1
1
# region LLVM installation
2
2
3
- cd llvm
3
+ pushd llvm
4
+
5
+ pushd utils /lit
6
+ %py3_install
7
+
8
+ # Strip out #!/usr/bin/env python
9
+ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot }%{python3_sitelib }/lit /*. py
10
+ popd
4
11
5
12
%cmake_install
6
13
7
- cd -
14
+ popd
8
15
9
16
mkdir -p %{buildroot }/%{_bindir }
10
17
Original file line number Diff line number Diff line change
1
+ # region LLVM lit package
2
+ %package -n python3 -lit
3
+ Summary : LLVM lit test runner for Python 3
4
+
5
+ BuildArch : noarch
6
+ Requires : python3 -setuptools
7
+ Recommends : python3 -psutil
8
+
9
+ %description -n python3 -lit
10
+ lit is a tool used by the LLVM project for executing its test suites .
11
+ # endregion
12
+
1
13
# region LLVM packages
2
14
3
15
%package -n %{pkg_name_llvm }-devel
You can’t perform that action at this time.
0 commit comments