mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-22 00:33:51 +00:00
For Debian Stretch for apt.llvm.org, use clang-14 to build itself as gcc 7 isn't available
This commit is contained in:
parent
c5ec8f3c73
commit
9bdde72430
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -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
8
debian/rules
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user