From 666503507b4e86580546eb8a8a3552f5b790cccc Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Wed, 8 Jun 2022 10:35:24 +0200 Subject: [PATCH] Built compiler-rt for default target only on sparc and sparc64 --- debian/changelog | 1 + debian/rules | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 58f099f7..7b5eb6ee 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ llvm-toolchain-snapshot (1:15~++20220509105605+460fc79a080b-1~exp4) UNRELEASED; * Enable GRPC build dependency only on supported targets * Disable compiler-rt built-ins on x32 * Limit parallel link jobs for all stages on sparc and sparc64 + * Built compiler-rt for default target only on sparc and sparc64 [ Sylvestre Ledru ] * Add usr/lib/llvm-15/lib/libomptarget.devicertl.a to libomp-X-dev diff --git a/debian/rules b/debian/rules index 73f3f51b..ef2aa71d 100755 --- a/debian/rules +++ b/debian/rules @@ -187,7 +187,15 @@ ifneq (,$(filter $(DEB_HOST_ARCH),powerpc)) STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON endif -ifneq (,$(filter $(DEB_HOST_ARCH),sparc sparc64)) +ifneq (,$(filter $(DEB_HOST_ARCH),sparc)) + STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=sparc-linux-gnu + STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON + STAGE_ALL_CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4 +endif + +ifneq (,$(filter $(DEB_HOST_ARCH),sparc64)) + STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=sparc64-linux-gnu + STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON STAGE_ALL_CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4 endif