From e2951087cf23b035e23455b566d9f2e68b6447c8 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Mon, 12 Jun 2023 19:34:20 +0200 Subject: [PATCH] Use -g0 on riscv64 --- debian/rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 536fd994..16a40510 100755 --- a/debian/rules +++ b/debian/rules @@ -157,8 +157,6 @@ export CC=gcc-$(GCC_VERSION) export CXX=g++-$(GCC_VERSION) endif -opt_flags = -O2 -DNDEBUG -g1 - ifneq (,$(findstring $(DEB_HOST_ARCH),armel)) STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabi STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON @@ -206,6 +204,9 @@ endif # more than 2 jobs causes OOM in Ubuntu and slows down build process. ifneq (,$(filter $(DEB_HOST_ARCH),riscv64)) NJOBS=2 + opt_flags = -O2 -DNDEBUG -g0 +else + opt_flags = -O2 -DNDEBUG -g1 endif ifneq (,$(filter $(DEB_HOST_ARCH),sparc))