Use clang where gcc fails due to virtual memory exhaustion
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Fri, 31 Jan 2020 22:08:37 +0000 (23:08 +0100)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Fri, 31 Jan 2020 22:08:37 +0000 (23:08 +0100)
debian/control
debian/rules

index 26a7e5982d03b3e4eeeede7387734bb01d2cedc6..bf583ea3ce0a253bf57f3f8bed00758d12e468c5 100644 (file)
@@ -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,
index b593e23441143aa57a6c2c8b13752b9a2338b95b..0a838f625aec2aabebe85706aab16787f318af1a 100755 (executable)
@@ -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