Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4B36884F26 for ; Tue, 27 Jun 2023 10:31:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id QGfh_YlzFl2m for ; Tue, 27 Jun 2023 10:31:32 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 99EE684CCC for ; Tue, 27 Jun 2023 10:31:32 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 97C2EFA89; Tue, 27 Jun 2023 10:31:32 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1687861892191230" MIME-Version: 1.0 Date: Tue, 27 Jun 2023 10:31:32 +0000 From: "Taylor R Campbell" Subject: CVS commit: pkgsrc/lang/llvm To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: riastradh@netbsd.org X-Mailer: log_accum Message-Id: <20230627103132.97C2EFA89@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_1687861892191230 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: riastradh Date: Tue Jun 27 10:31:32 UTC 2023 Modified Files: pkgsrc/lang/llvm: Makefile Log Message: llvm: Need Python as a tool, and llvm-tblgen too if cross-compiling. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 pkgsrc/lang/llvm/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1687861892191230 Content-Disposition: inline Content-Length: 969 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/llvm/Makefile diff -u pkgsrc/lang/llvm/Makefile:1.87 pkgsrc/lang/llvm/Makefile:1.88 --- pkgsrc/lang/llvm/Makefile:1.87 Wed Apr 19 08:10:35 2023 +++ pkgsrc/lang/llvm/Makefile Tue Jun 27 10:31:32 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.87 2023/04/19 08:10:35 adam Exp $ +# $NetBSD: Makefile,v 1.88 2023/06/27 10:31:32 riastradh Exp $ # # When updating this, please also update: # devel/include-what-you-use @@ -37,7 +37,7 @@ LICENSE= apache-2.0 USE_LANGUAGES= c c++14 GCC_REQD+= 7 -PYTHON_FOR_BUILD_ONLY= yes +PYTHON_FOR_BUILD_ONLY= tool PYTHON_VERSIONS_INCOMPATIBLE= 27 @@ -132,6 +132,11 @@ CXXFLAGS+= -mno-pltseq CMAKE_ARGS+= -DPKGSRC_LLVM_PTHREADLIB=-lpthread .endif +.if ${USE_CROSS_COMPILE:U:tl} == "yes" +TOOL_DEPENDS+= ${PKGNAME}:../../${PKGPATH} +CMAKE_ARGS+= -DLLVM_TABLEGEN:STRING=${TOOLBASE:Q}/bin/llvm-tblgen +.endif + .include "options.mk" # replacing config.guess is required even for cmake. --_----------=_1687861892191230--