From nobody Sun Apr 2 02:23:55 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PpyWb5f8sz43lmn; Sun, 2 Apr 2023 02:23:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PpyWb4JQZz3Qn2; Sun, 2 Apr 2023 02:23:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680402235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A6saPEZ9cFFBx0oSAO4w2yNG5JiOM5kQcfftCNdj9uk=; b=eLe0LVgtmNfFu8JFE/LAp977O1YuHxuLcSOjBo5FFmyuaVEZ0X5jcQ3s/ZBhxTCNNGuOJo wGdrCLoxYEUrR+wWTeetiQSPH2gaJi1+vRLKb9x2dmWeZxBXQid7vXtT04HEvv+DYvto/b OzoJeSblIrUmswV9I+qZoJLSBGQDGrBeQCvAZQ2fdP70hT6rm5qyXLlWuD8KFYMSHG7ZRB toVIOh133mP5L7VyHFdCHPIUbqBRw5Hf/qGxVJxVueVzx9TXiNfrI+l4yfnuNwaCe2oLVs oVkLZoKdAuSWrnNHfsEOJnEjHLONuFXMr2iDp3QRkhie5ST2Ew4fVXNcBd9zDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680402235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A6saPEZ9cFFBx0oSAO4w2yNG5JiOM5kQcfftCNdj9uk=; b=aezqmAmMTY5d4L58811NwfI6odGzHC67iRGcEFBX4R3bU3TXoXqEvqEApRCmc3Yv/hraGs XpJNP6J/mPhqVuvaBvyaEsbANNBXe1J6+u8y9b8va7yhzMANdOtlkLe6Zzr9zWZ2zTaeNe uIhunG4X2a0t2dyASlFRKqaqE9pReOq00J34f/kdZoNiCXDsiAky6MYEZo7ipEOhteAzLP +kF+wtHJlcYHY0JcYpUFpqSsCofq7vECI9V4JbGYNjZls1Iqm9X5BCZBD8rbag/xDqdBKr gv07C3HbiTY8W9OWy7Bv1iy979OiJI8EAucddhfQ5NyJ6n83QUh3SbpefgtLYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680402235; a=rsa-sha256; cv=none; b=iGlUQHxKKjfE5nPjseQPiuaPIYM5HkqEMImwTpawv1Pen0FCcvgOIUcl61jXpHWxpjsXAd /v1F6UFPiFcGH0t1m/cbFZTLNJdDvqrNeuKJuNg+lbq6P7MGfPPidXQsN+2z6GgCqrGNqf AT/mQ2b2ApWe5Zfmv4P215aDMBmp+xq7lScTD2JSNWcx5gpKb8ZhXjTZ3Z9al1ZglwEOGT IFYMK9T28pw++IYymDtAizhp7/whMwQjlq2IiwB8+6qrngtVh8N7i/EyMeLy3xp5ec/AGl UCgsrwQJ7VNL17EDAq2ZX/muER0j7vHBG1Cd0G09u3lCPCkKJs9dFyWIgRM9WQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PpyWb2GbMzyfy; Sun, 2 Apr 2023 02:23:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3322NtTb084251; Sun, 2 Apr 2023 02:23:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3322NtOs084250; Sun, 2 Apr 2023 02:23:55 GMT (envelope-from git) Date: Sun, 2 Apr 2023 02:23:55 GMT Message-Id: <202304020223.3322NtOs084250@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Brooks Davis Subject: git: d21523ff2022 - main - devel/llvm-devel: reduce diffs to llvm16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d21523ff202208a1808ef4bbc603b1427371e044 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=d21523ff202208a1808ef4bbc603b1427371e044 commit d21523ff202208a1808ef4bbc603b1427371e044 Author: Brooks Davis AuthorDate: 2023-04-02 02:17:48 +0000 Commit: Brooks Davis CommitDate: 2023-04-02 02:17:48 +0000 devel/llvm-devel: reduce diffs to llvm16 Mostly whitespace and style, but a few functional changes: - It is new possible to enable COMPILER_RT for the lite flavor. - Fix installation of internal lit depends. --- devel/llvm-devel/Makefile | 134 ++++++++++++++++++++++++--------------------- devel/llvm-devel/pkg-plist | 7 +++ 2 files changed, 78 insertions(+), 63 deletions(-) diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile index 9f4c1c38c741..6d324c45670b 100644 --- a/devel/llvm-devel/Makefile +++ b/devel/llvm-devel/Makefile @@ -1,6 +1,6 @@ PORTNAME= llvm PORTVERSION= ${LLVM_MAJOR}.0.d${SNAPDATE} -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= devel lang PKGNAMESUFFIX= ${LLVM_SUFFIX} @@ -29,24 +29,29 @@ LLVM_PREFIX= ${PREFIX}/${LLVM_DIR} DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${LLVM_SUFFIX} DATADIR= ${PREFIX}/share/${PORTNAME}${LLVM_SUFFIX} -BUILD_DEPENDS= - USES= cmake compiler:c++17-lang cpe shebangfix -USE_LDCONFIG= ${LLVM_PREFIX}/lib -_USES_PYTHON?= python:build,3.6+ +_USES_PYTHON?= python:3.6+,build USES+= ${_USES_PYTHON} +USE_LDCONFIG= ${LLVM_PREFIX}/lib SHEBANG_FILES= \ + clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py \ + clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py \ + clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \ + clang/tools/clang-format/clang-format-diff.py \ + clang/tools/clang-format/git-clang-format \ clang/tools/scan-build-py/bin/analyze-build \ clang/tools/scan-build-py/bin/intercept-build \ clang/tools/scan-build-py/bin/scan-build \ - clang/tools/scan-build-py/libexec/analyze-cc \ clang/tools/scan-build-py/libexec/analyze-c++ \ - clang/tools/scan-build-py/libexec/intercept-cc \ + clang/tools/scan-build-py/libexec/analyze-cc \ clang/tools/scan-build-py/libexec/intercept-c++ \ - llvm/tools/opt-viewer/optrecord.py \ + clang/tools/scan-build-py/libexec/intercept-cc \ + clang/tools/scan-view/bin/scan-view \ + clang/utils/hmaptool/hmaptool \ llvm/tools/opt-viewer/opt-diff.py \ llvm/tools/opt-viewer/opt-stats.py \ llvm/tools/opt-viewer/opt-viewer.py \ + llvm/tools/opt-viewer/optrecord.py \ llvm/utils/lit/lit.py \ llvm/utils/llvm-lit/llvm-lit.in @@ -82,57 +87,57 @@ GH_TAGNAME= ${LLVM_PROJECT_COMMIT} .include "Makefile.snapshot" -OPTIONS_DEFINE= CLANG DOCS LLD STATIC_LIBS +OPTIONS_DEFINE= CLANG COMPILER_RT DOCS LLD STATIC_LIBS OPTIONS_DEFAULT= CLANG LLD +OPTIONS_EXCLUDE_armv6= COMPILER_RT +OPTIONS_EXCLUDE_armv7= COMPILER_RT +OPTIONS_SUB= yes .if !${FLAVOR:Mlite} -OPTIONS_DEFINE+= COMPILER_RT EXTRAS FLANG LIT LLDB MLIR OPENMP +OPTIONS_DEFINE+= EXTRAS FLANG LIT LLDB MLIR OPENMP OPTIONS_DEFINE_amd64= GOLD OPTIONS_DEFINE_powerpc= GOLD OPTIONS_DEFINE_powerpc64= GOLD OPTIONS_DEFINE_powerpc64le= GOLD -OPTIONS_DEFAULT+= COMPILER_RT EXTRAS FLANG LIT LLDB STATIC_LIBS OPENMP + +OPTIONS_DEFAULT+= COMPILER_RT EXTRAS FLANG LIT LLDB MLIR OPENMP STATIC_LIBS OPTIONS_DEFAULT_amd64= GOLD OPTIONS_DEFAULT_powerpc= GOLD OPTIONS_DEFAULT_powerpc64= GOLD OPTIONS_DEFAULT_powerpc64le= GOLD -OPTIONS_EXCLUDE_armv6= COMPILER_RT FLANG OPENMP -OPTIONS_EXCLUDE_armv7= COMPILER_RT FLANG OPENMP + +OPTIONS_EXCLUDE_armv6+= FLANG OPENMP +OPTIONS_EXCLUDE_armv7+= FLANG OPENMP OPTIONS_EXCLUDE_i386= FLANG OPENMP OPTIONS_EXCLUDE_powerpc= FLANG OPENMP OPTIONS_EXCLUDE_riscv64= LLDB OPTIONS_EXCLUDE_FreeBSD_12= OPENMP .endif -OPTIONS_SUB= yes + _ALL_OPTIONS= CLANG COMPILER_RT DOCS EXTRAS FLANG GOLD LIT LLD LLDB MLIR \ OPENMP STATIC_LIBS -# Pre-declared for options framework -LIB_DEPENDS= -PLIST_DIRS= -PLIST_FILES= -PLIST_SUB_SED_EXCLUDE_VAL= lib "3.0.0" - CLANG_DESC= Build clang CLANG_CMAKE_ON= -DCLANG_DEFAULT_OPENMP_RUNTIME=libomp CLANG_PORTDOCS= clang -CLANG_PLIST_FILES= share/toolchains/llvm-devel.mk +CLANG_PLIST_FILES= share/toolchains/llvm${LLVM_SUFFIX}.mk CLANG_SUB_FILES= xtoolchain.mk CLANG_SUB_LIST= XCC=clang${LLVM_SUFFIX} \ XCXX=clang++${LLVM_SUFFIX} \ XCPP=clang-cpp${LLVM_SUFFIX} \ XLD=ld.lld${LLVM_SUFFIX} \ X_COMPILER_TYPE=clang -.if ${FLAVOR:Nlite} -# Required by scan-build. Users of lite can install by hand. CLANG_USES= perl5 -CLANG_USE= PERL5=run +.if ${FLAVOR:Mlite} +# scan-build does require perl, but lite users can install it manually. +CLANG_USE= PERL5=build .endif COMPILER_RT_DESC= Sanitizer libraries COMPILER_RT_IMPLIES= CLANG COMPILER_RT_PLIST_FILES=${_COMPILER_RT_LIBS} -DOCS_PORTDOCS= llvm DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx-markdown-tables>=0:textproc/py-sphinx-markdown-tables@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}recommonmark>=0.0.20180530:textproc/py-recommonmark@${PY_FLAVOR} +DOCS_CONFLICTS_BUILD= cmark +DOCS_PORTDOCS= llvm DOCS_CMAKE_ON= -DLLVM_ENABLE_SPHINX=ON \ -DSPHINX_EXECUTABLE=${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} \ -DSPHINX_WARNINGS_AS_ERRORS=OFF \ @@ -145,7 +150,12 @@ FLANG_DESC= Flang FORTRAN compiler FLANG_IMPLIES= MLIR FLANG_PORTDOCS= flang FLANG_PLIST_DIRS= ${LLVM_DIR}/include/flang/Config +GOLD_DESC= Build the LLVM Gold plugin for LTO +GOLD_CMAKE_ON= -DLLVM_BINUTILS_INCDIR=${LOCALBASE}/include +GOLD_BUILD_DEPENDS= ${LOCALBASE}/bin/ld.gold:devel/binutils +GOLD_PLIST_FILES= ${LLVM_DIR}/lib/LLVMgold.so LIT_DESC= Install lit and FileCheck test tools +LIT_VARS= _USES_PYTHON=python:3.6+ LLD_DESC= Install lld, the LLVM linker LLDB_BUILD_DEPENDS= swig:devel/swig LLDB_DESC= Install lldb, the LLVM debugger @@ -158,15 +168,9 @@ MLIR_DESC= Multi-Level Intermediate Representation OPENMP_DESC= Install libomp, the LLVM OpenMP runtime library OPENMP_CMAKE_ON= -DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB=OFF OPENMP_PORTDOCS= openmp -OPENMP_USES= perl5 -OPENMP_USE= PERL5=build STATIC_LIBS_DESC= Install static libraries (does not effect sanitizers) -GOLD_DESC= Build the LLVM Gold plugin for LTO -GOLD_CMAKE_ON= -DLLVM_BINUTILS_INCDIR=${LOCALBASE}/include -GOLD_BUILD_DEPENDS= ${LOCALBASE}/bin/ld.gold:devel/binutils -GOLD_PLIST_FILES= ${LLVM_DIR}/lib/LLVMgold.so -CONFLICTS_INSTALL= llvm-devel llvm-devel-lite +CONFLICTS_INSTALL= ${PORTNAME}${LLVM_SUFFIX} ${PORTNAME}${LLVM_SUFFIX}-lite PLIST_SUB+= LLVM_MAJOR=${LLVM_MAJOR} \ LLVM_RELEASE=${LLVM_RELEASE} @@ -230,11 +234,7 @@ CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/arm64/aarch64/}-portbld-${OPSYS:tl}${ LLVM_ENABLE_PROJECTS+= clang COMMANDS+= ${CLANG_COMMANDS} MAN1SRCS+= ${CLANG_MAN1SRCS} -CLANG_PATTERN= (amdgpu-arch|c-index-test|clang|diagtool|hmaptool|intercept-|libear|libscanbuild|nvptx-arch|analyze-|scan-|Reporter.py|ScanView.py|scanview.css|sorttable.js|startfile.py|-analyzer) -SHEBANG_FILES+= clang/tools/clang-format/git-clang-format \ - clang/tools/clang-format/clang-format-diff.py \ - clang/tools/scan-view/bin/scan-view \ - clang/utils/hmaptool/hmaptool +CLANG_PATTERN= (amdgpu-arch|c-index-test|clang|diagtool|hmaptool|intercept-|libear|libscanbuild|nvptx-arch|analyze-|scan-|Reporter.py|ScanView.py|scanview.css|sorttable.js|startfile.py|-analyzer|AnalyzerPlugin.so) USES+= gnome .endif @@ -255,9 +255,6 @@ LLVM_ENABLE_PROJECTS+= clang-tools-extra COMMANDS+= ${EXTRAS_COMMANDS} MAN1SRCS+= ${EXTRAS_MAN1SRCS} PORTDOCS+= clang-tools -SHEBANG_FILES+= clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py \ - clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py \ - clang-tools-extra/clang-tidy/tool/run-clang-tidy.py .endif .if ${PORT_OPTIONS:MFLANG} @@ -277,11 +274,13 @@ PORTDOCS+= lld .if ${PORT_OPTIONS:MLLDB} LLVM_ENABLE_PROJECTS+= lldb +MAN1SRCS+= ${LLDB_MAN1SRCS} COMMANDS+= ${LLDB_COMMANDS} .endif .if ${PORT_OPTIONS:MMLIR} LLVM_ENABLE_PROJECTS+= mlir +MAN1SRCS+= ${MLIR_MAN1SRCS} COMMANDS+= ${MLIR_COMMANDS} .endif @@ -306,25 +305,25 @@ STRIP= .endif .if ${ARCH} == "aarch64" -COMPILER_RT_ARCHS= aarch64 +COMPILER_RT_ARCHS= aarch64 .elif ${ARCH} == "amd64" -COMPILER_RT_ARCHS= x86_64 +COMPILER_RT_ARCHS= x86_64 .if exists(/usr/lib32/libc.so.7) -COMPILER_RT_ARCHS+= i386 +COMPILER_RT_ARCHS+= i386 .endif .elif ${ARCH} == "i386" -COMPILER_RT_ARCHS= i386 +COMPILER_RT_ARCHS= i386 .elif ${ARCH} == "powerpc" -COMPILER_RT_ARCHS= powerpc +COMPILER_RT_ARCHS= powerpc .elif ${ARCH} == "powerpc64" -COMPILER_RT_ARCHS= powerpc64 +COMPILER_RT_ARCHS= powerpc64 .if exists(/usr/lib32/libc.so.7) -COMPILER_RT_ARCHS+= powerpc +COMPILER_RT_ARCHS+= powerpc .endif .elif ${ARCH} == "powerpc64le" -COMPILER_RT_ARCHS= powerpc64le +COMPILER_RT_ARCHS= powerpc64le .elif ${ARCH} == "riscv64" -COMPILER_RT_ARCHS= riscv64 +COMPILER_RT_ARCHS= riscv64 .endif _CRTBASEDIR= ${LLVM_DIR}/lib/clang/${LLVM_MAJOR} @@ -360,20 +359,22 @@ PLIST_SUB+= ${opt}="@comment " post-patch: ${REINPLACE_CMD} -e 's|import lit|import lit${LLVM_SUFFIX}|' \ -e 's|from lit|from lit${LLVM_SUFFIX}|' \ - -e 's|lit\.|lit${LLVM_SUFFIX}.|' \ - ${WRKSRC}/llvm/utils/lit/lit.py ${WRKSRC}/llvm/utils/lit/lit/*.py + -e 's|lit\.|lit${LLVM_SUFFIX}.|g' \ + ${WRKSRC}/llvm/utils/lit/lit.py \ + ${WRKSRC}/llvm/utils/lit/lit/*.py \ + ${WRKSRC}/llvm/utils/lit/lit/formats/*.py post-patch-CLANG-on: ${REINPLACE_CMD} -e 's|%%LLVM_PREFIX%%|${LLVM_PREFIX}|' \ - ${PATCH_WRKSRC}/clang/lib/Driver/ToolChains/CommonArgs.cpp + ${WRKSRC}/clang/lib/Driver/ToolChains/CommonArgs.cpp ${REINPLACE_CMD} -e 's|%%LLVM_SUFFIX%%|${LLVM_SUFFIX}|' \ - ${PATCH_WRKSRC}/clang/tools/clang-format/clang-format.py \ - ${PATCH_WRKSRC}/clang/tools/clang-format/clang-format-sublime.py \ - ${PATCH_WRKSRC}/clang/tools/clang-format/git-clang-format + ${WRKSRC}/clang/tools/clang-format/clang-format.py \ + ${WRKSRC}/clang/tools/clang-format/clang-format-sublime.py \ + ${WRKSRC}/clang/tools/clang-format/git-clang-format post-patch-LLD-on: - ${REINPLACE_CMD} -e "s|'indexsidebar.html'|['indexsidebar.html']|" \ - ${PATCH_WRKSRC}/lld/docs/conf.py + ${REINPLACE_CMD} -e "s|'indexsidebar.html'|['indexsidebar.html']|" \ + ${WRKSRC}/lld/docs/conf.py post-install: ${INSTALL_SCRIPT} ${WRKDIR}/llvm-wrapper.sh \ @@ -426,9 +427,6 @@ post-install-FLANG-on: ${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/include/flang/Optimizer/CMakeFiles ${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/include/flang/CMakeFiles -post-install-STATIC_LIBS-off: - ${RM} ${STAGEDIR}${LLVM_PREFIX}/lib/lib*.a - post-install-LIT-on: ${INSTALL_SCRIPT} ${PATCH_WRKSRC}/llvm/utils/lit/lit.py \ ${STAGEDIR}${LLVM_PREFIX}/bin/lit @@ -436,11 +434,17 @@ post-install-LIT-on: ${STAGEDIR}${LLVM_PREFIX}/bin/llvm-lit ${LN} -fs ../${LLVM_DIR}/bin/lit \ ${STAGEDIR}${PREFIX}/bin/lit${LLVM_SUFFIX} - ${LN} -fs ../${LLVM_DIR}/bin/lit \ + ${LN} -fs ../${LLVM_DIR}/bin/llvm-lit \ ${STAGEDIR}${PREFIX}/bin/llvm-lit${LLVM_SUFFIX} ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/lit${LLVM_SUFFIX} + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/lit${LLVM_SUFFIX}/builtin_commands + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/lit${LLVM_SUFFIX}/formats ${INSTALL_DATA} ${WRKSRC}/llvm/utils/lit/lit/*.py \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/lit${LLVM_SUFFIX} + ${INSTALL_DATA} ${WRKSRC}/llvm/utils/lit/lit/builtin_commands/*.py \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/lit${LLVM_SUFFIX}/builtin_commands/ + ${INSTALL_DATA} ${WRKSRC}/llvm/utils/lit/lit/formats/*.py \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/lit${LLVM_SUFFIX}/formats/ ${INSTALL_PROGRAM} ${WRKDIR}/.build/bin/FileCheck \ ${STAGEDIR}${LLVM_PREFIX}/bin/ ${LN} -fs ../${LLVM_DIR}/bin/FileCheck \ @@ -458,7 +462,11 @@ do-test: ${SH} -c ${TEST_CMD}; \ fi +post-install-STATIC_LIBS-off: + ${RM} ${STAGEDIR}${LLVM_PREFIX}/lib/lib*.a + build-plist: + @[ -d ${STAGEDIR} ] || (echo "Can't make plist before package is staged ${STAGEDIR}" && exit 1) ${RM} ${PLIST} ${PLIST}.tmp ${ECHO_CMD} "@comment >>>>> GENERATED FILE, DO NOT EDIT <<<<<" >> ${PLIST}.tmp ${ECHO_CMD} "@comment Alter build-plist target and regenerate as required" >> ${PLIST}.tmp @@ -487,14 +495,14 @@ build-plist: -e 's|${LLVM_RELEASE:C/\./\\./g}|%%LLVM_RELEASE%%|' \ -e 's|${LLVM_MAJOR}|%%LLVM_MAJOR%%|' | \ ${SORT} >> ${PLIST}.tmp - awk '{ \ + ${AWK} '{ \ if ($$0 ~ /lib.lib[a-zA-Z].*\.a$$/) {printf "%%%%STATIC_LIBS%%%%"} \ if ($$0 ~ /${CLANG_PATTERN}/ && $$0 !~ /${OPENMP_PATTERN}|${EXTRAS_PATTERN}|${COMPILER_RT_PATTERN}|lib[a-z]*_rt/) {printf "%%%%CLANG%%%%"} \ if ($$0 ~ /${COMPILER_RT_PATTERN}/) \ {printf "%%%%COMPILER_RT%%%%"} \ - if ($$0 ~ /(bin\/(ld|lld|wasm-ld))|liblld[^b]|\/lld\// && $$0 !~ /lldb/) {printf "%%%%LLD%%%%"} \ if ($$0 ~ /(${EXTRAS_PATTERN})/) {printf "%%%%EXTRAS%%%%"} \ if ($$0 ~ /(${FLANG_PATTERN})/) {printf "%%%%FLANG%%%%"} \ + if ($$0 ~ /(bin\/(ld|lld|wasm-ld))|liblld[^b]|\/lld\// && $$0 !~ /lldb/) {printf "%%%%LLD%%%%"} \ if ($$0 ~ /(argdumper|lldb|six.py)/) {printf "%%%%LLDB%%%%"} \ if ($$0 ~ /(${MLIR_PATTERN})/) {printf "%%%%MLIR%%%%"} \ if ($$0 ~ /(${OPENMP_PATTERN})/) {printf "%%%%OPENMP%%%%"} \ diff --git a/devel/llvm-devel/pkg-plist b/devel/llvm-devel/pkg-plist index 49a0cb4be012..d74231b7268c 100644 --- a/devel/llvm-devel/pkg-plist +++ b/devel/llvm-devel/pkg-plist @@ -6154,9 +6154,16 @@ llvm-devel/share/opt-viewer/style.css %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/TestTimes.py %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/TestingConfig.py %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/__init__.py +%%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/builtin_commands/__init__.py +%%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/builtin_commands/cat.py +%%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/builtin_commands/diff.py %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/cl_arguments.py %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/discovery.py %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/display.py +%%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/formats/__init__.py +%%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/formats/base.py +%%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/formats/googletest.py +%%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/formats/shtest.py %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/main.py %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/reports.py %%LIT%%%%PYTHON_SITELIBDIR%%/lit-devel/run.py