pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/llvm



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.

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.



Home | Main Index | Thread Index | Old Index