For Debian Stretch for apt.llvm.org, use clang-14 to build itself as gcc 7 isn't available

This commit is contained in:
Sylvestre Ledru 2022-08-20 13:22:27 +02:00
parent c5ec8f3c73
commit 9bdde72430
2 changed files with 15 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-15 (1:15.0.0~+rc2-1~exp2) experimental; urgency=medium
* For Debian Stretch for apt.llvm.org, use clang-14 to build
itself as gcc 7 isn't available
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 20 Aug 2022 13:22:23 +0200
llvm-toolchain-15 (1:15.0.0~+rc2-1~exp1) experimental; urgency=medium
* Second testing release of 15

8
debian/rules vendored
View File

@ -106,6 +106,7 @@ ifneq (,$(filter $(DISTRO),stretch))
# GCC_VERSION := 7
# Don't enable lld python for old distros
STAGE_ALL_CMAKE_EXTRA += -DLLDB_ENABLE_PYTHON=OFF
USE_CLANG = yes
endif
Z3_FLAG = -DLLVM_ENABLE_Z3_SOLVER=OFF
@ -138,8 +139,15 @@ endif
endif
endif
ifeq ($(USE_CLANG),yes)
# For Debian stretch, gcc isn't available, let's use clang
# itself to build itself.
export CC=clang-14
export CXX=clang++-14
else
export CC=gcc-$(GCC_VERSION)
export CXX=g++-$(GCC_VERSION)
endif
opt_flags = -O2 -DNDEBUG -g1