diff options
Diffstat (limited to 'sys-devel/clang/clang-9.0.0.9999.ebuild')
-rw-r--r-- | sys-devel/clang/clang-9.0.0.9999.ebuild | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys-devel/clang/clang-9.0.0.9999.ebuild b/sys-devel/clang/clang-9.0.0.9999.ebuild index 4fac61d4c534..848de712e241 100644 --- a/sys-devel/clang/clang-9.0.0.9999.ebuild +++ b/sys-devel/clang/clang-9.0.0.9999.ebuild @@ -14,6 +14,9 @@ inherit cmake-utils git-r3 llvm multilib-minimal multiprocessing \ DESCRIPTION="C language family frontend for LLVM" HOMEPAGE="https://llvm.org/" SRC_URI="" +# We need extra level of indirection for CLANG_RESOURCE_DIR +S=${WORKDIR}/x/y/${P} + EGIT_REPO_URI="https://git.llvm.org/git/clang.git https://github.com/llvm-mirror/clang.git" EGIT_BRANCH="release_90" @@ -32,6 +35,8 @@ SLOT="$(ver_cut 1)" KEYWORDS="" IUSE="debug default-compiler-rt default-libcxx doc +static-analyzer test xml kernel_FreeBSD ${ALL_LLVM_TARGETS[*]}" +REQUIRED_USE="${PYTHON_REQUIRED_USE} + || ( ${ALL_LLVM_TARGETS[*]} )" RESTRICT="!test? ( test )" RDEPEND=" @@ -39,8 +44,9 @@ RDEPEND=" static-analyzer? ( dev-lang/perl:* ) xml? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] ) ${PYTHON_DEPS}" +DEPEND="${RDEPEND}" # configparser-3.2 breaks the build (3.3 or none at all are fine) -DEPEND="${RDEPEND} +BDEPEND=" doc? ( dev-python/sphinx ) xml? ( virtual/pkgconfig ) !!<dev-python/configparser-3.3.0.2 @@ -54,12 +60,6 @@ PDEPEND=" default-compiler-rt? ( =sys-libs/compiler-rt-${PV%_*}* ) default-libcxx? ( >=sys-libs/libcxx-${PV} )" -REQUIRED_USE="${PYTHON_REQUIRED_USE} - || ( ${ALL_LLVM_TARGETS[*]} )" - -# We need extra level of indirection for CLANG_RESOURCE_DIR -S=${WORKDIR}/x/y/${P} - # least intrusive of all CMAKE_BUILD_TYPE=RelWithDebInfo @@ -67,6 +67,9 @@ 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 + # fix build with gcc-9.0.0 + # https://bugs.llvm.org/show_bug.cgi?id=40547 + "${FILESDIR}"/9.0.0/0002-Initialize-all-fields-in-ABIArgInfo.patch ) # Multilib notes: |