View | Details | Raw Unified | Return to bug 239990 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/llvm90/Makefile (-3 / +12 lines)
Lines 66-75 CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHON_CMD} \ Link Here
66
CFLAGS+=	-DNDEBUG
66
CFLAGS+=	-DNDEBUG
67
CXXFLAGS+=	-DNDEBUG
67
CXXFLAGS+=	-DNDEBUG
68
68
69
OPTIONS_DEFINE=	BE_AMDGPU CLANG DOCS EXTRAS LIT LLD LLDB
69
OPTIONS_DEFINE=	BE_AMDGPU CLANG DOCS EXTRAS LIT LLD LLDB PYCLANG
70
OPTIONS_DEFINE_amd64=	COMPILER_RT GOLD OPENMP
70
OPTIONS_DEFINE_amd64=	COMPILER_RT GOLD OPENMP
71
OPTIONS_DEFINE_i386=	COMPILER_RT OPENMP
71
OPTIONS_DEFINE_i386=	COMPILER_RT OPENMP
72
OPTIONS_DEFAULT=	BE_AMDGPU BE_STANDARD CLANG EXTRAS LIT LLD LLDB
72
OPTIONS_DEFAULT=	BE_AMDGPU BE_STANDARD CLANG EXTRAS LIT LLD LLDB PYCLANG
73
OPTIONS_DEFAULT_amd64=	COMPILER_RT GOLD OPENMP
73
OPTIONS_DEFAULT_amd64=	COMPILER_RT GOLD OPENMP
74
OPTIONS_DEFAULT_i386=	COMPILER_RT OPENMP
74
OPTIONS_DEFAULT_i386=	COMPILER_RT OPENMP
75
OPTIONS_SINGLE=		BACKENDS
75
OPTIONS_SINGLE=		BACKENDS
Lines 125-130 LLDB_PORTDOCS= lldb Link Here
125
LLDB_VARS=		_USES_PYTHON=python:3.6+
125
LLDB_VARS=		_USES_PYTHON=python:3.6+
126
OPENMP_DESC=		Install libomp, the LLVM OpenMP runtime library
126
OPENMP_DESC=		Install libomp, the LLVM OpenMP runtime library
127
OPENMP_DISTFILES=	openmp-${DISTVERSION}.src${EXTRACT_SUFX}
127
OPENMP_DISTFILES=	openmp-${DISTVERSION}.src${EXTRACT_SUFX}
128
PYCLANG_DESC=	Install python bindings to libclang
129
PYCLANG_IMPLIES=	CLANG
130
PYCLANG_VARS=	_USES_PYTHON=python:3.6+
131
PYCLANG_CMAKE_ON= -DCLANG_PYTHON_BINDINGS_VERSIONS=${PYTHON_VER}
128
132
129
.if defined(WITH_DEBUG)
133
.if defined(WITH_DEBUG)
130
CMAKE_BUILD_TYPE=	RelWithDebInfo
134
CMAKE_BUILD_TYPE=	RelWithDebInfo
Lines 262-267 PORTDOCS+= lld Link Here
262
COMMANDS+=	${LLDB_COMMANDS}
266
COMMANDS+=	${LLDB_COMMANDS}
263
.endif
267
.endif
264
268
269
.if ${PORT_OPTIONS:MPYCLANG}
270
PYCLANG_PATTERN=	(clang\/(__init__|cindex|enumerations).py$)
271
.endif
272
265
.include <bsd.port.pre.mk>
273
.include <bsd.port.pre.mk>
266
.include "${.CURDIR}/Makefile.COMMANDS"
274
.include "${.CURDIR}/Makefile.COMMANDS"
267
275
Lines 566-572 build-plist: Link Here
566
	    -e 's|\([^0-9]\)${LLVM_MAJOR}\([^0-9]\)|\1%%LLVM_MAJOR%%\2|' \
574
	    -e 's|\([^0-9]\)${LLVM_MAJOR}\([^0-9]\)|\1%%LLVM_MAJOR%%\2|' \
567
	    | ${SORT} >> ${PLIST}.tmp
575
	    | ${SORT} >> ${PLIST}.tmp
568
	${AWK} '{ \
576
	${AWK} '{ \
569
	    if ($$0 ~ /${CLANG_PATTERN}/ && $$0 !~ /(omp.h|ompt.h|${EXTRAS_PATTERN}|libclang_rt)/) {printf "%%%%CLANG%%%%"} \
577
	    if ($$0 ~ /${CLANG_PATTERN}/ && $$0 !~ /(omp.h|ompt.h|${EXTRAS_PATTERN}|libclang_rt|${PYCLANG_PATTERN})/) {printf "%%%%CLANG%%%%"} \
570
	    if ($$0 ~ /${COMPILER_RT_PATTERN}/) \
578
	    if ($$0 ~ /${COMPILER_RT_PATTERN}/) \
571
		{printf "%%%%COMPILER_RT%%%%"} \
579
		{printf "%%%%COMPILER_RT%%%%"} \
572
	    if ($$0 ~ /(${EXTRAS_PATTERN})/) {printf "%%%%EXTRAS%%%%"} \
580
	    if ($$0 ~ /(${EXTRAS_PATTERN})/) {printf "%%%%EXTRAS%%%%"} \
Lines 574-579 build-plist: Link Here
574
	    if ($$0 ~ /(argdumper|lldb|six.py)/) {printf "%%%%LLDB%%%%"} \
582
	    if ($$0 ~ /(argdumper|lldb|six.py)/) {printf "%%%%LLDB%%%%"} \
575
	    if ($$0 ~ /(lib.*omp|omp.h|ompt.h)/) {printf "%%%%OPENMP%%%%"} \
583
	    if ($$0 ~ /(lib.*omp|omp.h|ompt.h)/) {printf "%%%%OPENMP%%%%"} \
576
	    if ($$0 ~ /(LLVMgold)/) {printf "%%%%GOLD%%%%"} \
584
	    if ($$0 ~ /(LLVMgold)/) {printf "%%%%GOLD%%%%"} \
585
	    if ($$0 ~ /${PYCLANG_PATTERN}/) {printf "%%%%PYCLANG%%%%"} \
577
	    if ($$0 !~ /(libclang_rt)/ && $$0 !~ /(${BE_PATTERN})$$/) {print}}' ${PLIST}.tmp >> ${PLIST}
586
	    if ($$0 !~ /(libclang_rt)/ && $$0 !~ /(${BE_PATTERN})$$/) {print}}' ${PLIST}.tmp >> ${PLIST}
578
	${ECHO_CMD} '@postexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi' >> ${PLIST}
587
	${ECHO_CMD} '@postexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi' >> ${PLIST}
579
	${ECHO_CMD} '@postunexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi' >> ${PLIST}
588
	${ECHO_CMD} '@postunexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi' >> ${PLIST}

Return to bug 239990