Too old version of gcc. Force gcc 11

Should be triggered only on bionic
https://reviews.llvm.org/D110338
Should be removed when we moved to RUNTIMES as we
will use clang to build libc++ even stage1 (only from stage2 now)
This commit is contained in:
Sylvestre Ledru 2021-10-04 11:16:05 +02:00
parent b854e644c5
commit a112c44b6d

10
debian/rules vendored
View File

@ -78,9 +78,13 @@ export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixfilepath optimize=-lto
# Cxx flags for building libcxx and libcxxabi
LIBCXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) lt 4.9-20140411-1~ ; echo $$?),0)
# Too old version of gcc. Force 4.9
GCC_VERSION := 4.9
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) lt 9 ; echo $$?),0)
# Too old version of gcc. Force gcc 11
# Should be triggered only on bionic
# https://reviews.llvm.org/D110338
# Should be removed when we moved to RUNTIMES as we
# will use clang to build libc++ even stage1 (only from stage2 now)
GCC_VERSION := 11
endif
Z3_FLAG = -DLLVM_ENABLE_Z3_SOLVER=OFF