From 4428d2a59eb089a9fb3e2550bff04914113379fa Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 23 Sep 2024 13:20:45 +0200 Subject: [PATCH] Don't enable intel-pt on Ubuntu Bionic --- debian/changelog | 6 ++++++ debian/rules | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/debian/changelog b/debian/changelog index 5d8ea0b3..16a0606f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +llvm-toolchain-19 (1:19.1.0-5) unstable; urgency=medium + + * Don't enable intel-pt on Ubuntu Bionic + + -- Sylvestre Ledru Mon, 23 Sep 2024 13:20:42 +0200 + llvm-toolchain-19 (1:19.1.0-4) unstable; urgency=medium [ Sylvestre Ledru ] diff --git a/debian/rules b/debian/rules index 4b6b6da9..250d20d5 100755 --- a/debian/rules +++ b/debian/rules @@ -492,8 +492,15 @@ ifneq (,$(filter $(DEB_HOST_ARCH),$(LLDB_ARCHS))) STAGE_ALL_CMAKE_EXTRA += -DLLDB_ENABLE_LUA=OFF PROJECTS+=;lldb endif + ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64)) + INTEL_PT_DISABLE_DISTRO := bionic +# Disable intel-pt on old distro, fails on bionic (too old) + ifeq (,$(filter $(DISTRO), $(INTEL_PT_DISABLE_DISTRO))) STAGE_ALL_CMAKE_EXTRA += -DLLDB_BUILD_INTEL_PT=ON -DLIBIPT_INCLUDE_PATH=/usr/include -DLIBIPT_LIBRARY_PATH=/usr/lib/$(DEB_HOST_MULTIARCH) + + endif + endif LLDB_PYTHON_DISABLE_DISTRO := bionic buster