From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 99012138335 for ; Fri, 13 Sep 2019 09:39:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A260FE0B61; Fri, 13 Sep 2019 09:39:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75CB7E0B61 for ; Fri, 13 Sep 2019 09:39:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CD0C034B103 for ; Fri, 13 Sep 2019 09:39:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B9D4720 for ; Fri, 13 Sep 2019 09:39:33 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1568367569.ffad92daa7226f4246808a1a98d26f39d7d42990.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang/files/9.0.0/, sys-devel/clang/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/clang/clang-9.0.0.9999.ebuild sys-devel/clang/files/9.0.0/0001-clang-unittest-Import-LLVMTestingSupport-if-necessar.patch X-VCS-Directories: sys-devel/clang/files/9.0.0/ sys-devel/clang/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ffad92daa7226f4246808a1a98d26f39d7d42990 X-VCS-Branch: master Date: Fri, 13 Sep 2019 09:39:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eab2aca7-cc73-4915-8a66-32eb4cfbfc29 X-Archives-Hash: 3548e782c2224b65ed8b2443eaf6b9e3 commit: ffad92daa7226f4246808a1a98d26f39d7d42990 Author: Michał Górny gentoo org> AuthorDate: Fri Sep 13 08:18:39 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Sep 13 09:39:29 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffad92da sys-devel/clang: Backport non-native build fix for 9.0.0 Signed-off-by: Michał Górny gentoo.org> sys-devel/clang/clang-9.0.0.9999.ebuild | 6 ++++ ...est-Import-LLVMTestingSupport-if-necessar.patch | 39 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/sys-devel/clang/clang-9.0.0.9999.ebuild b/sys-devel/clang/clang-9.0.0.9999.ebuild index 92eaa1de0a7..60b45818fe4 100644 --- a/sys-devel/clang/clang-9.0.0.9999.ebuild +++ b/sys-devel/clang/clang-9.0.0.9999.ebuild @@ -63,6 +63,12 @@ S=${WORKDIR}/x/y/${P} # least intrusive of all CMAKE_BUILD_TYPE=RelWithDebInfo +PATCHES=( + # fix linking in non-native build (without tools-extra) + # https://bugs.llvm.org/show_bug.cgi?id=43281 + "${FILESDIR}"/9.0.0/0001-clang-unittest-Import-LLVMTestingSupport-if-necessar.patch +) + # Multilib notes: # 1. ABI_* flags control ABIs libclang* is built for only. # 2. clang is always capable of compiling code for all ABIs for enabled diff --git a/sys-devel/clang/files/9.0.0/0001-clang-unittest-Import-LLVMTestingSupport-if-necessar.patch b/sys-devel/clang/files/9.0.0/0001-clang-unittest-Import-LLVMTestingSupport-if-necessar.patch new file mode 100644 index 00000000000..67ae5a8e4dc --- /dev/null +++ b/sys-devel/clang/files/9.0.0/0001-clang-unittest-Import-LLVMTestingSupport-if-necessar.patch @@ -0,0 +1,39 @@ +From bfb5b0cb86cf90d9fa794f873644aa642b652c43 Mon Sep 17 00:00:00 2001 +From: Michal Gorny +Date: Thu, 12 Sep 2019 13:06:12 +0000 +Subject: [PATCH] [clang] [unittest] Import LLVMTestingSupport if necessary + +Add LLVMTestingSupport directory from LLVM_MAIN_SRC_DIR when building +clang stand-alone and LLVMTestingSupport library is not present. This +is needed to fix stand-alone builds without clang-tools-extra. + +Differential Revision: https://reviews.llvm.org/D67452 + +llvm-svn: 371733 +--- + clang/unittests/CMakeLists.txt | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt +index 9a41000cf43..4c222e24599 100644 +--- a/unittests/CMakeLists.txt ++++ b/unittests/CMakeLists.txt +@@ -1,6 +1,15 @@ + add_custom_target(ClangUnitTests) + set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests") + ++if(CLANG_BUILT_STANDALONE) ++ # LLVMTestingSupport library is needed for some of the unittests. ++ if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support ++ AND NOT TARGET LLVMTestingSupport) ++ add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support ++ lib/Testing/Support) ++ endif() ++endif() ++ + # add_clang_unittest(test_dirname file1.cpp file2.cpp) + # + # Will compile the list of files together and link against the clang +-- +2.23.0 +