On Debian stretch, force the usage of g++-7

This commit is contained in:
Sylvestre Ledru 2022-07-03 18:16:42 +02:00
parent 9876989ab2
commit 7e0af84d6e
2 changed files with 13 additions and 5 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
llvm-toolchain-snapshot (1:15~++20220625103012+3d37e785c77a-1~exp2) experimental; urgency=medium
* On Debian stretch, force the usage of g++-7
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 03 Jul 2022 18:16:34 +0200
llvm-toolchain-snapshot (1:15~++20220625103012+3d37e785c77a-1~exp1) experimental; urgency=medium
[ John Paul Adrian Glaubitz ]

12
debian/rules vendored
View File

@ -104,6 +104,13 @@ ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++
GCC_VERSION := 4.9
endif
ifneq (,$(filter $(DISTRO),stretch))
# from llvm 15, we need gcc at least 7
GCC_VERSION := 7
# Don't enable lld python for old distros
STAGE_ALL_CMAKE_EXTRA += -DLLDB_ENABLE_PYTHON=OFF
endif
Z3_FLAG = -DLLVM_ENABLE_Z3_SOLVER=OFF
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' libz3-dev) gt 4.7.0; echo $$?),0)
# no ocaml support in main for Ubuntu
@ -363,11 +370,6 @@ else
PROJECTS+=;lldb
endif
ifneq (,$(filter $(DISTRO),stretch))
# Don't enable lld python for old distros
STAGE_ALL_CMAKE_EXTRA += -DLLDB_ENABLE_PYTHON=OFF
endif
LLD_ENABLE=yes