From 0cf19f69887891f6fcdf43863e49dcc608cc62c4 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Fri, 31 Jan 2020 23:08:37 +0100 Subject: [PATCH] Use clang where gcc fails due to virtual memory exhaustion --- debian/control | 1 + debian/rules | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 26a7e598..bf583ea3 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,7 @@ Section: libs Priority: optional Build-Depends: debhelper-compat (= 12), dh-exec, cmake, + clang [mipsel armel armhf], python3-sphinx, libboost-system-dev, libboost-filesystem-dev, diff --git a/debian/rules b/debian/rules index b593e234..0a838f62 100755 --- a/debian/rules +++ b/debian/rules @@ -13,8 +13,10 @@ CXXFLAGS+=$(CPPFLAGS) BUILD_DOC = $(if $(shell dh_listpackages | grep libpcl-doc),-DWITH_DOCS=ON) -ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel armhf armel)) +ifneq (,$(filter $(DEB_BUILD_ARCH),mipsel armhf armel)) PARALLEL=--max-parallel=2 + export CC=/usr/bin/clang + export CXX=/usr/bin/clang++ else PARALLEL= endif -- 2.30.2