mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
7f69c7ebdf
Remove version.spec.inc from git ================================ We no longer track `version.spec.inc` in git. This is useful for development. If we build a snapshot, the file is required but if we build a `release` build (see below), then we don't include it. Make improvements ================= We distinguish between `snapshot-` and `release-` builds now in the `Makefile`. These old targets are mapped to their new counterparts and a deprecation warning is shown: * `setup` -> `snapshot-setup` * `local-rpm` -> `snapshot-rpm` * `local-srpm` -> `snapshot-srpm` * `local-prep` -> `snapshot-prep` * `local-clean` -> `snapshot-clean` We also have these new Make targets that run the build process with a release tarball instead: * `release-setup` * `release-rpm` * `release-srpm` * `release-prep` * `release-clean` The targets `local-list-check` and `local-tmt-vm` have been commented out because I think they were not needed. I just kept them for future reference of research done in those areas. All builds described by the `Makefile` are still local and no `mock` is involved. I find this the easiest to debug. Toggle default bcond state for snapshot_build ============================================= We want to be able to build non-snapshot releases with this repo. That's why be default the build condition `snapshot_build` is off. So only when you explicitly enable `--with=snapshot_build` or define `--define "_with_snapshot_build 1"` you'll be able to build a snapshot. If however the build happens in Copr with a namespace that begins with `fedora-llvm-team/llvm-snapshots-`, then the build condition is ON by default and there's no need to enable it explicitly with `--with=snapshot_build`. Things related to release update ================================ * Add llvm-project tarball and signature to sources * Fix: error: source 1001 defined multiple times * Fix: error: source 1006 defined multiple times * Fix missing newline * Conditionally apply 0001-Always-build-shared-libs-for-LLD.patch * Only enable offload runtime in snapshot mode Misc. ===== * Add missing prep dependency
63 lines
1.6 KiB
PHP
63 lines
1.6 KiB
PHP
%if %{without snapshot_build}
|
|
# llvm
|
|
%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
%endif
|
|
|
|
# -T : Do Not Perform Default Archive Unpacking (without this, the <n>th source would be unpacked twice)
|
|
# -b <n> : Unpack The nth Sources Before Changing Directory
|
|
# -n : Set Name of Build Directory
|
|
#
|
|
# see http://ftp.rpm.org/max-rpm/s1-rpm-inside-macros.html
|
|
%autosetup -N -T -b 0 -n %{src_tarball_dir}
|
|
|
|
# Apply all patches with number <= 9000
|
|
# See https://rpm-software-management.github.io/rpm/manual/autosetup.html
|
|
%autopatch -M9000 -p1
|
|
|
|
%if %{defined rhel}
|
|
%patch -p1 -P9002
|
|
%endif
|
|
|
|
#region LLVM preparation
|
|
|
|
%py3_shebang_fix \
|
|
llvm/test/BugPoint/compile-custom.ll.py \
|
|
llvm/tools/opt-viewer/*.py \
|
|
llvm/utils/update_cc_test_checks.py
|
|
|
|
#endregion
|
|
|
|
#region CLANG preparation
|
|
|
|
%if %{without compat_build}
|
|
|
|
%py3_shebang_fix \
|
|
clang-tools-extra/clang-tidy/tool/ \
|
|
clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
|
|
|
%py3_shebang_fix \
|
|
clang/tools/clang-format/ \
|
|
clang/tools/clang-format/git-clang-format \
|
|
clang/utils/hmaptool/hmaptool \
|
|
clang/tools/scan-view/bin/scan-view \
|
|
clang/tools/scan-view/share/Reporter.py \
|
|
clang/tools/scan-view/share/startfile.py \
|
|
clang/tools/scan-build-py/bin/* \
|
|
clang/tools/scan-build-py/libexec/*
|
|
|
|
%endif
|
|
|
|
#endregion
|
|
|
|
#region COMPILER-RT preparation
|
|
|
|
%if %{without compat_build}
|
|
%py3_shebang_fix compiler-rt/lib/hwasan/scripts/hwasan_symbolize
|
|
%endif
|
|
|
|
#endregion
|
|
|
|
#region LLDB preparation
|
|
# Empty lldb/docs/CMakeLists.txt because we cannot build it
|
|
echo "" > lldb/docs/CMakeLists.txt
|
|
#endregion
|