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 8196C138330 for ; Mon, 29 Aug 2016 21:44:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 453DAE0839; Mon, 29 Aug 2016 21:44:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB642E09B3 for ; Mon, 29 Aug 2016 21:43:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B68B7340942 for ; Mon, 29 Aug 2016 21:43:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C60E62467 for ; Mon, 29 Aug 2016 21:43:56 +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: <1472507000.9046a22556866234773a494af9dd1657f2765d1a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/clang/clang-9999.ebuild X-VCS-Directories: sys-devel/clang/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 9046a22556866234773a494af9dd1657f2765d1a X-VCS-Branch: master Date: Mon, 29 Aug 2016 21:43:56 +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-Archives-Salt: e502bc51-2e68-4d48-8aec-2a658867730d X-Archives-Hash: 09f225ebbd66c5a4ce007b513a826971 commit: 9046a22556866234773a494af9dd1657f2765d1a Author: Michał Górny gentoo org> AuthorDate: Mon Aug 29 21:41:24 2016 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Aug 29 21:43:20 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9046a225 sys-devel/clang: Fetch llvm src with USE=test, to support unittests sys-devel/clang/clang-9999.ebuild | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index 5d96509..8d472da 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -75,10 +75,19 @@ pkg_setup() { src_unpack() { git-r3_fetch "http://llvm.org/git/clang-tools-extra.git https://github.com/llvm-mirror/clang-tools-extra.git" + if use test; then + # needed for patched gtest + git-r3_fetch "http://llvm.org/git/llvm.git + https://github.com/llvm-mirror/llvm.git" + fi git-r3_fetch git-r3_checkout http://llvm.org/git/clang-tools-extra.git \ "${S}"/tools/clang/tools/extra + if use test; then + git-r3_checkout http://llvm.org/git/llvm.git \ + "${WORKDIR}"/llvm + fi git-r3_checkout } @@ -140,10 +149,12 @@ multilib_src_configure() { -DCLANG_ENABLE_ARCMT=$(usex static-analyzer) -DCLANG_ENABLE_STATIC_ANALYZER=$(usex static-analyzer) ) + use test && mycmakeargs+=( + -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" + ) if multilib_is_native_abi; then mycmakeargs+=( - # TODO: docs don't work out-of-llvm -DLLVM_BUILD_DOCS=$(usex doc) -DLLVM_ENABLE_SPHINX=$(usex doc) -DLLVM_ENABLE_DOXYGEN=OFF