Move the list of llvm commands to seperate Makefile.COMMANDS to be used
by another port to come later. Reorder Makefiles a bit to group similar things together. Remove support for generating patch files from upstream SVN revisions. The required interfaces have been disabled for some time and LLVM is in the process if migrating to Git. No functional changes (pkg-plist changes are simply ordering).
This commit is contained in:
parent
c5121e772f
commit
47af55657d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495005
12 changed files with 562 additions and 627 deletions
|
@ -132,54 +132,7 @@ GOLD_BUILD_DEPENDS= ${LOCALBASE}/bin/ld.gold:devel/binutils
|
|||
PLIST_SUB+= LLVM_MAJOR=${LLVM_MAJOR} \
|
||||
LLVM_RELEASE=${LLVM_RELEASE}
|
||||
|
||||
COMMANDS= bugpoint \
|
||||
dsymutil \
|
||||
llc \
|
||||
lli \
|
||||
llvm-ar \
|
||||
llvm-as \
|
||||
llvm-bcanalyzer \
|
||||
llvm-cat \
|
||||
llvm-cfi-verify \
|
||||
llvm-config \
|
||||
llvm-cov \
|
||||
llvm-cvtres \
|
||||
llvm-cxxmap \
|
||||
llvm-diff \
|
||||
llvm-dis \
|
||||
llvm-dlltool \
|
||||
llvm-dwarfdump \
|
||||
llvm-dwp \
|
||||
llvm-elfabi \
|
||||
llvm-exegesis \
|
||||
llvm-extract \
|
||||
llvm-link \
|
||||
llvm-mc \
|
||||
llvm-modextract \
|
||||
llvm-mt \
|
||||
llvm-nm \
|
||||
llvm-objcopy \
|
||||
llvm-objdump \
|
||||
llvm-opt-report \
|
||||
llvm-pdbutil \
|
||||
llvm-profdata \
|
||||
llvm-ranlib \
|
||||
llvm-rc \
|
||||
llvm-readelf \
|
||||
llvm-readobj \
|
||||
llvm-rtdyld \
|
||||
llvm-size \
|
||||
llvm-split \
|
||||
llvm-stress \
|
||||
llvm-strings \
|
||||
llvm-strip \
|
||||
llvm-symbolizer \
|
||||
llvm-tblgen \
|
||||
llvm-undname \
|
||||
llvm-xray \
|
||||
macho-dump \
|
||||
opt \
|
||||
sancov
|
||||
COMMANDS= ${LLVM_COMMANDS}
|
||||
FIRST_COMMAND= ${COMMANDS:C/^/XXXX/1:MXXXX*:C/^XXXX//}
|
||||
|
||||
MAN1SRCS+= bugpoint.1 \
|
||||
|
@ -216,17 +169,6 @@ STRIP_LIBS= BugpointPasses.so \
|
|||
${LIBNAME}.0 \
|
||||
libLTO.so
|
||||
|
||||
EXTRAS_COMMANDS= \
|
||||
clang-apply-replacements \
|
||||
clang-change-namespace \
|
||||
clang-include-fixer \
|
||||
clang-modernize \
|
||||
clang-query \
|
||||
clang-rename \
|
||||
clang-reorder-fields \
|
||||
clang-tidy \
|
||||
find-all-symbols \
|
||||
modularize
|
||||
EXTRAS_LIBS= \
|
||||
libclangApplyReplacements \
|
||||
libclangIncludeFixer \
|
||||
|
@ -261,20 +203,7 @@ CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/arm64/aarch64/}-portbld-${OPSYS:tl}${
|
|||
# ----------- end of sync block --------------------
|
||||
|
||||
.if ${PORT_OPTIONS:MCLANG}
|
||||
COMMANDS+= c-index-test \
|
||||
clang \
|
||||
clang++ \
|
||||
clang-check \
|
||||
clang-cpp \
|
||||
clang-extdef-mapping \
|
||||
clang-format \
|
||||
clang-import-test \
|
||||
clang-offload-bundler \
|
||||
clangd \
|
||||
diagtool \
|
||||
hmaptool \
|
||||
scan-build \
|
||||
scan-view
|
||||
COMMANDS+= ${CLANG_COMMANDS}
|
||||
MAN1SRCS+= clang.1 \
|
||||
diagtool.1 \
|
||||
scan-build.1
|
||||
|
@ -286,48 +215,29 @@ USES+= gnome
|
|||
COMPILER_RT_PATTERN= (sanitizer|include.xray)
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXTRAS}
|
||||
COMMANDS+= ${EXTRAS_COMMANDS}
|
||||
MAN1SRCS+= extraclangtools.1
|
||||
PORTDOCS+= clang-tools
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLIT}
|
||||
MAN1SRCS+= lit.1 FileCheck.1
|
||||
LIT_COMMANDS= lit llvm-lit FileCheck
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLD}
|
||||
COMMANDS+= ld.lld \
|
||||
ld64.lld \
|
||||
wasm-ld
|
||||
COMMANDS+= ${LLD_COMMANDS}
|
||||
PORTDOCS+= lld
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLDB}
|
||||
COMMANDS+= lldb \
|
||||
lldb-argdumper \
|
||||
lldb-instr \
|
||||
lldb-mi \
|
||||
lldb-server \
|
||||
lldb-test \
|
||||
lldb-vscode
|
||||
COMMANDS+= ${LLDB_COMMANDS}
|
||||
.endif
|
||||
|
||||
OPENMP_PATTERN= lib[ig]*omp|omp.h|ompt.h|omp-tools.h
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MCOMPILER_RT}
|
||||
# Hack to disable COMPILER_RT in plist of unsupported architectures
|
||||
PLIST_SUB+= COMPILER_RT="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MGOLD}
|
||||
# Hack to disable GOLD in plist of unsupported architectures
|
||||
PLIST_SUB+= GOLD="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MOPENMP}
|
||||
# Hack to disable OPENMP in plist of unsupported architectures
|
||||
PLIST_SUB+= OPENMP="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include "${.CURDIR}/Makefile.COMMANDS"
|
||||
|
||||
.if defined(WITH_DEBUG)
|
||||
CMAKE_BUILD_TYPE= RelWithDebInfo
|
||||
|
@ -404,16 +314,22 @@ _COMPILER_RT_LIBS+= \
|
|||
libclang_rt.ubsan_standalone_cxx-i386.a
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXTRAS}
|
||||
COMMANDS+= ${EXTRAS_COMMANDS}
|
||||
MAN1SRCS+= extraclangtools.1
|
||||
PORTDOCS+= clang-tools
|
||||
.if ! ${OPTIONS_DEFINE:MCOMPILER_RT}
|
||||
# Hack to disable COMPILER_RT in plist of unsupported architectures
|
||||
PLIST_SUB+= COMPILER_RT="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLD}
|
||||
COMMANDS+= lld \
|
||||
lld-link
|
||||
PORTDOCS+= lld
|
||||
.if ! ${OPTIONS_DEFINE:MGOLD}
|
||||
# Hack to disable GOLD in plist of unsupported architectures
|
||||
PLIST_SUB+= GOLD="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MOPENMP}
|
||||
# Hack to disable OPENMP in plist of unsupported architectures
|
||||
PLIST_SUB+= OPENMP="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
|
|
100
devel/llvm-devel/Makefile.COMMANDS
Normal file
100
devel/llvm-devel/Makefile.COMMANDS
Normal file
|
@ -0,0 +1,100 @@
|
|||
# $FreeBSD$
|
||||
|
||||
LLVM_COMMANDS= \
|
||||
bugpoint \
|
||||
dsymutil \
|
||||
llc \
|
||||
lli \
|
||||
llvm-ar \
|
||||
llvm-as \
|
||||
llvm-bcanalyzer \
|
||||
llvm-cat \
|
||||
llvm-cfi-verify \
|
||||
llvm-config \
|
||||
llvm-cov \
|
||||
llvm-cvtres \
|
||||
llvm-cxxmap \
|
||||
llvm-diff \
|
||||
llvm-dis \
|
||||
llvm-dlltool \
|
||||
llvm-dwarfdump \
|
||||
llvm-dwp \
|
||||
llvm-elfabi \
|
||||
llvm-exegesis \
|
||||
llvm-extract \
|
||||
llvm-link \
|
||||
llvm-mc \
|
||||
llvm-modextract \
|
||||
llvm-mt \
|
||||
llvm-nm \
|
||||
llvm-objcopy \
|
||||
llvm-objdump \
|
||||
llvm-opt-report \
|
||||
llvm-pdbutil \
|
||||
llvm-profdata \
|
||||
llvm-ranlib \
|
||||
llvm-rc \
|
||||
llvm-readelf \
|
||||
llvm-readobj \
|
||||
llvm-rtdyld \
|
||||
llvm-size \
|
||||
llvm-split \
|
||||
llvm-stress \
|
||||
llvm-strings \
|
||||
llvm-strip \
|
||||
llvm-symbolizer \
|
||||
llvm-tblgen \
|
||||
llvm-undname \
|
||||
llvm-xray \
|
||||
macho-dump \
|
||||
opt \
|
||||
sancov
|
||||
|
||||
CLANG_COMMANDS= \
|
||||
c-index-test \
|
||||
clang \
|
||||
clang++ \
|
||||
clang-check \
|
||||
clang-cpp \
|
||||
clang-extdef-mapping \
|
||||
clang-format \
|
||||
clang-import-test \
|
||||
clang-offload-bundler \
|
||||
clangd \
|
||||
diagtool \
|
||||
hmaptool \
|
||||
scan-build \
|
||||
scan-view
|
||||
|
||||
EXTRAS_COMMANDS= \
|
||||
clang-apply-replacements \
|
||||
clang-change-namespace \
|
||||
clang-include-fixer \
|
||||
clang-modernize \
|
||||
clang-query \
|
||||
clang-rename \
|
||||
clang-reorder-fields \
|
||||
clang-tidy \
|
||||
find-all-symbols \
|
||||
modularize
|
||||
|
||||
LIT_COMMANDS= \
|
||||
FileCheck \
|
||||
lit \
|
||||
llvm-lit
|
||||
|
||||
LLD_COMMANDS= \
|
||||
ld.lld \
|
||||
ld64.lld \
|
||||
lld \
|
||||
lld-link \
|
||||
wasm-ld
|
||||
|
||||
LLDB_COMMANDS= \
|
||||
lldb \
|
||||
lldb-argdumper \
|
||||
lldb-instr \
|
||||
lldb-mi \
|
||||
lldb-server \
|
||||
lldb-test \
|
||||
lldb-vscode
|
|
@ -62,16 +62,6 @@ bin/diagtool-devel
|
|||
bin/hmaptool-devel
|
||||
%%CLANG%%bin/scan-build-devel
|
||||
%%CLANG%%bin/scan-view-devel
|
||||
%%LLD%%bin/ld.lld-devel
|
||||
%%LLD%%bin/ld64.lld-devel
|
||||
%%LLD%%bin/wasm-ld-devel
|
||||
%%LLDB%%bin/lldb-devel
|
||||
%%LLDB%%bin/lldb-argdumper-devel
|
||||
%%LLDB%%bin/lldb-instr-devel
|
||||
%%LLDB%%bin/lldb-mi-devel
|
||||
%%LLDB%%bin/lldb-server-devel
|
||||
%%LLDB%%bin/lldb-test-devel
|
||||
%%LLDB%%bin/lldb-vscode-devel
|
||||
%%EXTRAS%%bin/clang-apply-replacements-devel
|
||||
%%EXTRAS%%bin/clang-change-namespace-devel
|
||||
%%EXTRAS%%bin/clang-include-fixer-devel
|
||||
|
@ -82,14 +72,24 @@ bin/hmaptool-devel
|
|||
%%EXTRAS%%bin/clang-tidy-devel
|
||||
%%EXTRAS%%bin/find-all-symbols-devel
|
||||
%%EXTRAS%%bin/modularize-devel
|
||||
%%LLD%%bin/ld.lld-devel
|
||||
%%LLD%%bin/ld64.lld-devel
|
||||
%%LLD%%bin/lld-devel
|
||||
%%LLD%%bin/lld-link-devel
|
||||
%%LLD%%bin/wasm-ld-devel
|
||||
%%LLDB%%bin/lldb-devel
|
||||
%%LLDB%%bin/lldb-argdumper-devel
|
||||
%%LLDB%%bin/lldb-instr-devel
|
||||
%%LLDB%%bin/lldb-mi-devel
|
||||
%%LLDB%%bin/lldb-server-devel
|
||||
%%LLDB%%bin/lldb-test-devel
|
||||
%%LLDB%%bin/lldb-vscode-devel
|
||||
%%LIT%%bin/FileCheck-devel
|
||||
%%LIT%%llvm-devel/bin/FileCheck
|
||||
%%LIT%%bin/lit-devel
|
||||
%%LIT%%llvm-devel/bin/lit
|
||||
%%LIT%%bin/llvm-lit-devel
|
||||
%%LIT%%llvm-devel/bin/llvm-lit
|
||||
%%LIT%%bin/FileCheck-devel
|
||||
%%LIT%%llvm-devel/bin/FileCheck
|
||||
%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/__init__.py
|
||||
%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/_lldb.so
|
||||
%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/embedded_interpreter.py
|
||||
|
|
|
@ -112,48 +112,7 @@ PLIST_SUB+= LLVM_LIB_VER=${LLVM_LIB_VER} \
|
|||
LLVM_RELEASE=${LLVM_RELEASE} \
|
||||
LLVM_SUFFIX=${LLVM_SUFFIX}
|
||||
|
||||
COMMANDS= bugpoint \
|
||||
llc \
|
||||
lli \
|
||||
llvm-ar \
|
||||
llvm-as \
|
||||
llvm-bcanalyzer \
|
||||
llvm-cat \
|
||||
llvm-cfi-verify \
|
||||
llvm-config \
|
||||
llvm-cov \
|
||||
llvm-cvtres \
|
||||
llvm-diff \
|
||||
llvm-dis \
|
||||
llvm-dlltool \
|
||||
llvm-dwarfdump \
|
||||
llvm-dwp \
|
||||
llvm-extract \
|
||||
llvm-link \
|
||||
llvm-mc \
|
||||
llvm-mcmarkup \
|
||||
llvm-modextract \
|
||||
llvm-mt \
|
||||
llvm-nm \
|
||||
llvm-objcopy \
|
||||
llvm-objdump \
|
||||
llvm-opt-report \
|
||||
llvm-pdbutil \
|
||||
llvm-profdata \
|
||||
llvm-ranlib \
|
||||
llvm-rc \
|
||||
llvm-readelf \
|
||||
llvm-readobj \
|
||||
llvm-rtdyld \
|
||||
llvm-size \
|
||||
llvm-split \
|
||||
llvm-stress \
|
||||
llvm-strings \
|
||||
llvm-symbolizer \
|
||||
llvm-tblgen \
|
||||
macho-dump \
|
||||
opt \
|
||||
sancov
|
||||
COMMANDS= ${LLVM_COMMANDS}
|
||||
FIRST_COMMAND= ${COMMANDS:C/^/XXXX/1:MXXXX*:C/^XXXX//}
|
||||
|
||||
STRIP_LIBS= BugpointPasses.so \
|
||||
|
@ -161,18 +120,6 @@ STRIP_LIBS= BugpointPasses.so \
|
|||
${LIBNAME}.0 \
|
||||
libLTO.so
|
||||
|
||||
EXTRAS_COMMANDS+= \
|
||||
clang-apply-replacements \
|
||||
clang-change-namespace \
|
||||
clang-include-fixer \
|
||||
clang-modernize \
|
||||
clang-query \
|
||||
clang-rename \
|
||||
clang-reorder-fields \
|
||||
clang-tidy \
|
||||
clangd \
|
||||
find-all-symbols \
|
||||
modularize
|
||||
EXTRAS_LIBS= libclangApplyReplacements \
|
||||
libclangChangeNamespace \
|
||||
libclangDaemon \
|
||||
|
@ -210,17 +157,7 @@ CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/arm64/aarch64/}-portbld-${OPSYS:tl}${
|
|||
# ----------- end of sync block --------------------
|
||||
|
||||
.if ${PORT_OPTIONS:MCLANG}
|
||||
COMMANDS+= c-index-test \
|
||||
clang \
|
||||
clang++ \
|
||||
clang-check \
|
||||
clang-cpp \
|
||||
clang-format \
|
||||
clang-func-mapping \
|
||||
clang-import-test \
|
||||
clang-offload-bundler \
|
||||
scan-build \
|
||||
scan-view
|
||||
COMMANDS+= ${CLANG_COMMANDS}
|
||||
MAN1SRCS+= clang.1 \
|
||||
scan-build.1
|
||||
CLANG_PATTERN= (c-index-test|clang|scan-|Reporter.py|ScanView.py|scanview.css|sorttable.js|startfile.py|-analyzer)
|
||||
|
@ -234,35 +171,26 @@ USES+= gnome
|
|||
COMPILER_RT_PATTERN= (_blacklist.txt|sanitizer|include.xray)
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXTRAS}
|
||||
COMMANDS+= ${EXTRAS_COMMANDS}
|
||||
MAN1SRCS+= extraclangtools.1
|
||||
PORTDOCS+= clang-tools
|
||||
SHEBANG_FILES+= tools/clang/tools/extra/clang-tidy/tool/clang-tidy-diff.py \
|
||||
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
|
||||
tools/clang/tools/extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLIT}
|
||||
MAN1SRCS+= lit.1 FileCheck.1
|
||||
LIT_COMMANDS= lit llvm-lit FileCheck
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLD}
|
||||
COMMANDS+= ${LLD_COMMANDS}
|
||||
PORTDOCS+= lld
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLDB}
|
||||
COMMANDS+= lldb \
|
||||
lldb-argdumper \
|
||||
lldb-mi \
|
||||
lldb-server \
|
||||
lldb-test
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MCOMPILER_RT}
|
||||
# Hack to disable COMPILER_RT in plist of unsupported architectures
|
||||
PLIST_SUB+= COMPILER_RT="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MGOLD}
|
||||
# Hack to disable GOLD in plist of unsupported architectures
|
||||
PLIST_SUB+= GOLD="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MOPENMP}
|
||||
# Hack to disable OPENMP in plist of unsupported architectures
|
||||
PLIST_SUB+= OPENMP="@comment "
|
||||
.else
|
||||
COMMANDS+= ${LLDB_COMMANDS}
|
||||
.endif
|
||||
|
||||
MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
|
||||
|
@ -274,6 +202,7 @@ MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
|
|||
opt.1 tblgen.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include "${.CURDIR}/Makefile.COMMANDS"
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
_COMPILER_RT_LIBS= \
|
||||
|
@ -323,24 +252,6 @@ _COMPILER_RT_LIBS+= \
|
|||
libclang_rt.ubsan_standalone_cxx-i386.a
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXTRAS}
|
||||
COMMANDS+= ${EXTRAS_COMMANDS}
|
||||
MAN1SRCS+= extraclangtools.1
|
||||
PORTDOCS+= clang-tools
|
||||
SHEBANG_FILES+= tools/clang/tools/extra/clang-tidy/tool/clang-tidy-diff.py \
|
||||
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
|
||||
tools/clang/tools/extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLD}
|
||||
COMMANDS+= ld.lld \
|
||||
ld64.lld \
|
||||
lld \
|
||||
lld-link \
|
||||
wasm-ld
|
||||
PORTDOCS+= lld
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == "FreeBSD" && ${COMPILER_TYPE} != clang
|
||||
CXXFLAGS+= -D_GLIBCXX_USE_C99
|
||||
.endif
|
||||
|
@ -351,6 +262,24 @@ CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
|||
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MCOMPILER_RT}
|
||||
# Hack to disable COMPILER_RT in plist of unsupported architectures
|
||||
PLIST_SUB+= COMPILER_RT="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MGOLD}
|
||||
# Hack to disable GOLD in plist of unsupported architectures
|
||||
PLIST_SUB+= GOLD="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MOPENMP}
|
||||
# Hack to disable OPENMP in plist of unsupported architectures
|
||||
PLIST_SUB+= OPENMP="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
post-extract-CLANG-on:
|
||||
${MV} ${WRKSRC_clang} ${PATCH_WRKSRC}/tools/clang
|
||||
|
||||
|
@ -521,50 +450,4 @@ check-commands:
|
|||
test -e ${STAGEDIR}${LLVM_PREFIX}/bin/${command}
|
||||
.endfor
|
||||
|
||||
.if make(svn-patch-llvm)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-llvm requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/llvm/trunk
|
||||
svn-patch-llvm:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-clang)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-clang requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/clang/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/cfe/trunk
|
||||
svn-patch-clang:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | \
|
||||
${SED} -E -e 's;^(---|\+\+\+) ;\1 tools/clang/;' >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-compiler-rt)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-compiler-rt requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/compiler-rt/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/compiler-rt/trunk
|
||||
svn-patch-compiler-rt:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | \
|
||||
${SED} -E -e 's;^(---|\+\+\+) ;\1 tools/compiler-rt/;' >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-lldb)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-lldb requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/lldb/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/lldb/trunk
|
||||
svn-patch-lldb:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
90
devel/llvm60/Makefile.COMMANDS
Normal file
90
devel/llvm60/Makefile.COMMANDS
Normal file
|
@ -0,0 +1,90 @@
|
|||
# $FreeBSD$
|
||||
|
||||
LLVM_COMMANDS= \
|
||||
bugpoint \
|
||||
llc \
|
||||
lli \
|
||||
llvm-ar \
|
||||
llvm-as \
|
||||
llvm-bcanalyzer \
|
||||
llvm-cat \
|
||||
llvm-cfi-verify \
|
||||
llvm-config \
|
||||
llvm-cov \
|
||||
llvm-cvtres \
|
||||
llvm-diff \
|
||||
llvm-dis \
|
||||
llvm-dlltool \
|
||||
llvm-dwarfdump \
|
||||
llvm-dwp \
|
||||
llvm-extract \
|
||||
llvm-link \
|
||||
llvm-mc \
|
||||
llvm-mcmarkup \
|
||||
llvm-modextract \
|
||||
llvm-mt \
|
||||
llvm-nm \
|
||||
llvm-objcopy \
|
||||
llvm-objdump \
|
||||
llvm-opt-report \
|
||||
llvm-pdbutil \
|
||||
llvm-profdata \
|
||||
llvm-ranlib \
|
||||
llvm-rc \
|
||||
llvm-readelf \
|
||||
llvm-readobj \
|
||||
llvm-rtdyld \
|
||||
llvm-size \
|
||||
llvm-split \
|
||||
llvm-stress \
|
||||
llvm-strings \
|
||||
llvm-symbolizer \
|
||||
llvm-tblgen \
|
||||
macho-dump \
|
||||
opt \
|
||||
sancov
|
||||
|
||||
CLANG_COMMANDS= \
|
||||
c-index-test \
|
||||
clang \
|
||||
clang++ \
|
||||
clang-check \
|
||||
clang-cpp \
|
||||
clang-format \
|
||||
clang-func-mapping \
|
||||
clang-import-test \
|
||||
clang-offload-bundler \
|
||||
scan-build \
|
||||
scan-view
|
||||
|
||||
EXTRAS_COMMANDS= \
|
||||
clang-apply-replacements \
|
||||
clang-change-namespace \
|
||||
clang-include-fixer \
|
||||
clang-modernize \
|
||||
clang-query \
|
||||
clang-rename \
|
||||
clang-reorder-fields \
|
||||
clang-tidy \
|
||||
clangd \
|
||||
find-all-symbols \
|
||||
modularize
|
||||
|
||||
LIT_COMMANDS= \
|
||||
FileCheck \
|
||||
lit \
|
||||
llvm-lit
|
||||
|
||||
LLD_COMMANDS= \
|
||||
ld.lld \
|
||||
ld64.lld \
|
||||
lld \
|
||||
lld-link \
|
||||
wasm-ld
|
||||
|
||||
LLDB_COMMANDS= \
|
||||
lldb \
|
||||
lldb-argdumper \
|
||||
lldb-mi \
|
||||
lldb-server \
|
||||
lldb-test
|
|
@ -53,11 +53,6 @@ bin/sancov%%LLVM_SUFFIX%%
|
|||
%%CLANG%%bin/clang-offload-bundler%%LLVM_SUFFIX%%
|
||||
%%CLANG%%bin/scan-build%%LLVM_SUFFIX%%
|
||||
%%CLANG%%bin/scan-view%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-argdumper%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-mi%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-server%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-test%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-apply-replacements%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-change-namespace%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-include-fixer%%LLVM_SUFFIX%%
|
||||
|
@ -74,12 +69,17 @@ bin/sancov%%LLVM_SUFFIX%%
|
|||
%%LLD%%bin/lld%%LLVM_SUFFIX%%
|
||||
%%LLD%%bin/lld-link%%LLVM_SUFFIX%%
|
||||
%%LLD%%bin/wasm-ld%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-argdumper%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-mi%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-server%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-test%%LLVM_SUFFIX%%
|
||||
%%LIT%%bin/FileCheck%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/FileCheck
|
||||
%%LIT%%bin/lit%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/lit
|
||||
%%LIT%%bin/llvm-lit%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/llvm-lit
|
||||
%%LIT%%bin/FileCheck%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/FileCheck
|
||||
%%LLDB%%llvm%%LLVM_LIB_VER%%/%%PYTHON_SITELIBDIR%%/lldb/__init__.py
|
||||
%%LLDB%%llvm%%LLVM_LIB_VER%%/%%PYTHON_SITELIBDIR%%/lldb/_lldb.so
|
||||
%%LLDB%%llvm%%LLVM_LIB_VER%%/%%PYTHON_SITELIBDIR%%/lldb/embedded_interpreter.py
|
||||
|
|
|
@ -111,53 +111,7 @@ PLIST_SUB+= LLVM_RELEASE=${LLVM_RELEASE} \
|
|||
LLVM_SUFFIX=${LLVM_SUFFIX} \
|
||||
LLVM_MAJOR=${LLVM_MAJOR}
|
||||
|
||||
COMMANDS= bugpoint \
|
||||
dsymutil \
|
||||
llc \
|
||||
lli \
|
||||
llvm-ar \
|
||||
llvm-as \
|
||||
llvm-bcanalyzer \
|
||||
llvm-cat \
|
||||
llvm-cfi-verify \
|
||||
llvm-config \
|
||||
llvm-cov \
|
||||
llvm-cvtres \
|
||||
llvm-diff \
|
||||
llvm-dis \
|
||||
llvm-dlltool \
|
||||
llvm-dwarfdump \
|
||||
llvm-dwp \
|
||||
llvm-exegesis \
|
||||
llvm-extract \
|
||||
llvm-link \
|
||||
llvm-mc \
|
||||
llvm-mca \
|
||||
llvm-modextract \
|
||||
llvm-mt \
|
||||
llvm-nm \
|
||||
llvm-objcopy \
|
||||
llvm-objdump \
|
||||
llvm-opt-report \
|
||||
llvm-pdbutil \
|
||||
llvm-profdata \
|
||||
llvm-ranlib \
|
||||
llvm-rc \
|
||||
llvm-readelf \
|
||||
llvm-readobj \
|
||||
llvm-rtdyld \
|
||||
llvm-size \
|
||||
llvm-split \
|
||||
llvm-stress \
|
||||
llvm-strings \
|
||||
llvm-strip \
|
||||
llvm-symbolizer \
|
||||
llvm-tblgen \
|
||||
llvm-undname \
|
||||
llvm-xray \
|
||||
macho-dump \
|
||||
opt \
|
||||
sancov
|
||||
COMMANDS= ${LLVM_COMMANDS}
|
||||
FIRST_COMMAND= ${COMMANDS:C/^/XXXX/1:MXXXX*:C/^XXXX//}
|
||||
|
||||
STRIP_LIBS= BugpointPasses.so \
|
||||
|
@ -165,18 +119,6 @@ STRIP_LIBS= BugpointPasses.so \
|
|||
${LIBNAME}.0 \
|
||||
libLTO.so
|
||||
|
||||
EXTRAS_COMMANDS+= \
|
||||
clang-apply-replacements \
|
||||
clang-change-namespace \
|
||||
clang-include-fixer \
|
||||
clang-modernize \
|
||||
clang-query \
|
||||
clang-rename \
|
||||
clang-reorder-fields \
|
||||
clang-tidy \
|
||||
clangd \
|
||||
find-all-symbols \
|
||||
modularize
|
||||
EXTRAS_LIBS= libclangApplyReplacements \
|
||||
libclangChangeNamespace \
|
||||
libclangDaemon \
|
||||
|
@ -215,19 +157,7 @@ CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/arm64/aarch64/}-portbld-${OPSYS:tl}${
|
|||
# ----------- end of sync block --------------------
|
||||
|
||||
.if ${PORT_OPTIONS:MCLANG}
|
||||
COMMANDS+= c-index-test \
|
||||
clang \
|
||||
clang++ \
|
||||
clang-check \
|
||||
clang-cpp \
|
||||
clang-format \
|
||||
clang-func-mapping \
|
||||
clang-import-test \
|
||||
clang-offload-bundler \
|
||||
diagtool \
|
||||
hmaptool \
|
||||
scan-build \
|
||||
scan-view
|
||||
COMMANDS+= ${CLANG_COMMANDS}
|
||||
MAN1SRCS+= clang.1 \
|
||||
diagtool.1 \
|
||||
scan-build.1
|
||||
|
@ -242,35 +172,26 @@ USES+= gnome
|
|||
COMPILER_RT_PATTERN= (_blacklist.txt|sanitizer|include.xray)
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXTRAS}
|
||||
COMMANDS+= ${EXTRAS_COMMANDS}
|
||||
MAN1SRCS+= extraclangtools.1
|
||||
PORTDOCS+= clang-tools
|
||||
SHEBANG_FILES+= tools/clang/tools/extra/clang-tidy/tool/clang-tidy-diff.py \
|
||||
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
|
||||
tools/clang/tools/extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLIT}
|
||||
MAN1SRCS+= lit.1 FileCheck.1
|
||||
LIT_COMMANDS= lit llvm-lit FileCheck
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLD}
|
||||
COMMANDS+= ${LLD_COMMANDS}
|
||||
PORTDOCS+= lld
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLDB}
|
||||
COMMANDS+= lldb \
|
||||
lldb-argdumper \
|
||||
lldb-mi \
|
||||
lldb-server \
|
||||
lldb-test
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MCOMPILER_RT}
|
||||
# Hack to disable COMPILER_RT in plist of unsupported architectures
|
||||
PLIST_SUB+= COMPILER_RT="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MGOLD}
|
||||
# Hack to disable GOLD in plist of unsupported architectures
|
||||
PLIST_SUB+= GOLD="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MOPENMP}
|
||||
# Hack to disable OPENMP in plist of unsupported architectures
|
||||
PLIST_SUB+= OPENMP="@comment "
|
||||
.else
|
||||
COMMANDS+= ${LLDB_COMMANDS}
|
||||
.endif
|
||||
|
||||
MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
|
||||
|
@ -285,6 +206,7 @@ MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
|
|||
opt.1 tblgen.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include "${.CURDIR}/Makefile.COMMANDS"
|
||||
|
||||
_CRTLIBDIR= ${LLVM_PREFIX:S|${PREFIX}/||}/lib/clang/${LLVM_RELEASE}/lib/freebsd
|
||||
_CRTBLDIR= ${LLVM_PREFIX:S|${PREFIX}/||}/share
|
||||
|
@ -350,24 +272,6 @@ _COMPILER_RT_LIBS+= \
|
|||
libclang_rt.ubsan_standalone_cxx-i386.a
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXTRAS}
|
||||
COMMANDS+= ${EXTRAS_COMMANDS}
|
||||
MAN1SRCS+= extraclangtools.1
|
||||
PORTDOCS+= clang-tools
|
||||
SHEBANG_FILES+= tools/clang/tools/extra/clang-tidy/tool/clang-tidy-diff.py \
|
||||
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
|
||||
tools/clang/tools/extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLD}
|
||||
COMMANDS+= ld.lld \
|
||||
ld64.lld \
|
||||
lld \
|
||||
lld-link \
|
||||
wasm-ld
|
||||
PORTDOCS+= lld
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == "FreeBSD" && ${COMPILER_TYPE} != clang
|
||||
CXXFLAGS+= -D_GLIBCXX_USE_C99
|
||||
.endif
|
||||
|
@ -378,6 +282,24 @@ CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
|||
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MCOMPILER_RT}
|
||||
# Hack to disable COMPILER_RT in plist of unsupported architectures
|
||||
PLIST_SUB+= COMPILER_RT="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MGOLD}
|
||||
# Hack to disable GOLD in plist of unsupported architectures
|
||||
PLIST_SUB+= GOLD="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MOPENMP}
|
||||
# Hack to disable OPENMP in plist of unsupported architectures
|
||||
PLIST_SUB+= OPENMP="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
post-extract-CLANG-on:
|
||||
${MV} ${WRKSRC_clang} ${PATCH_WRKSRC}/tools/clang
|
||||
|
||||
|
@ -544,50 +466,4 @@ check-commands:
|
|||
test -e ${STAGEDIR}${LLVM_PREFIX}/bin/${command}
|
||||
.endfor
|
||||
|
||||
.if make(svn-patch-llvm)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-llvm requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/llvm/trunk
|
||||
svn-patch-llvm:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-clang)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-clang requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/clang/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/cfe/trunk
|
||||
svn-patch-clang:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | \
|
||||
${SED} -E -e 's;^(---|\+\+\+) ;\1 tools/clang/;' >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-compiler-rt)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-compiler-rt requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/compiler-rt/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/compiler-rt/trunk
|
||||
svn-patch-compiler-rt:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | \
|
||||
${SED} -E -e 's;^(---|\+\+\+) ;\1 tools/compiler-rt/;' >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-lldb)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-lldb requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/lldb/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/lldb/trunk
|
||||
svn-patch-lldb:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
97
devel/llvm70/Makefile.COMMANDS
Normal file
97
devel/llvm70/Makefile.COMMANDS
Normal file
|
@ -0,0 +1,97 @@
|
|||
# $FreeBSD$
|
||||
|
||||
LLVM_COMMANDS= \
|
||||
bugpoint \
|
||||
dsymutil \
|
||||
llc \
|
||||
lli \
|
||||
llvm-ar \
|
||||
llvm-as \
|
||||
llvm-bcanalyzer \
|
||||
llvm-cat \
|
||||
llvm-cfi-verify \
|
||||
llvm-config \
|
||||
llvm-cov \
|
||||
llvm-cvtres \
|
||||
llvm-diff \
|
||||
llvm-dis \
|
||||
llvm-dlltool \
|
||||
llvm-dwarfdump \
|
||||
llvm-dwp \
|
||||
llvm-exegesis \
|
||||
llvm-extract \
|
||||
llvm-link \
|
||||
llvm-mc \
|
||||
llvm-mca \
|
||||
llvm-modextract \
|
||||
llvm-mt \
|
||||
llvm-nm \
|
||||
llvm-objcopy \
|
||||
llvm-objdump \
|
||||
llvm-opt-report \
|
||||
llvm-pdbutil \
|
||||
llvm-profdata \
|
||||
llvm-ranlib \
|
||||
llvm-rc \
|
||||
llvm-readelf \
|
||||
llvm-readobj \
|
||||
llvm-rtdyld \
|
||||
llvm-size \
|
||||
llvm-split \
|
||||
llvm-stress \
|
||||
llvm-strings \
|
||||
llvm-strip \
|
||||
llvm-symbolizer \
|
||||
llvm-tblgen \
|
||||
llvm-undname \
|
||||
llvm-xray \
|
||||
macho-dump \
|
||||
opt \
|
||||
sancov
|
||||
|
||||
CLANG_COMMANDS= \
|
||||
c-index-test \
|
||||
clang \
|
||||
clang++ \
|
||||
clang-check \
|
||||
clang-cpp \
|
||||
clang-format \
|
||||
clang-func-mapping \
|
||||
clang-import-test \
|
||||
clang-offload-bundler \
|
||||
diagtool \
|
||||
hmaptool \
|
||||
scan-build \
|
||||
scan-view
|
||||
|
||||
EXTRAS_COMMANDS= \
|
||||
clang-apply-replacements \
|
||||
clang-change-namespace \
|
||||
clang-include-fixer \
|
||||
clang-modernize \
|
||||
clang-query \
|
||||
clang-rename \
|
||||
clang-reorder-fields \
|
||||
clang-tidy \
|
||||
clangd \
|
||||
find-all-symbols \
|
||||
modularize
|
||||
|
||||
LIT_COMMANDS= \
|
||||
FileCheck \
|
||||
lit \
|
||||
llvm-lit
|
||||
|
||||
LLD_COMMANDS= \
|
||||
ld.lld \
|
||||
ld64.lld \
|
||||
lld \
|
||||
lld-link \
|
||||
wasm-ld
|
||||
|
||||
LLDB_COMMANDS= \
|
||||
lldb \
|
||||
lldb-argdumper \
|
||||
lldb-mi \
|
||||
lldb-server \
|
||||
lldb-test
|
|
@ -60,11 +60,6 @@ bin/diagtool%%LLVM_SUFFIX%%
|
|||
bin/hmaptool%%LLVM_SUFFIX%%
|
||||
%%CLANG%%bin/scan-build%%LLVM_SUFFIX%%
|
||||
%%CLANG%%bin/scan-view%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-argdumper%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-mi%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-server%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-test%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-apply-replacements%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-change-namespace%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-include-fixer%%LLVM_SUFFIX%%
|
||||
|
@ -81,12 +76,17 @@ bin/hmaptool%%LLVM_SUFFIX%%
|
|||
%%LLD%%bin/lld%%LLVM_SUFFIX%%
|
||||
%%LLD%%bin/lld-link%%LLVM_SUFFIX%%
|
||||
%%LLD%%bin/wasm-ld%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-argdumper%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-mi%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-server%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-test%%LLVM_SUFFIX%%
|
||||
%%LIT%%bin/FileCheck%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/FileCheck
|
||||
%%LIT%%bin/lit%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/lit
|
||||
%%LIT%%bin/llvm-lit%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/llvm-lit
|
||||
%%LIT%%bin/FileCheck%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/FileCheck
|
||||
%%LLDB%%llvm%%LLVM_SUFFIX%%/%%PYTHON_SITELIBDIR%%/lldb/__init__.py
|
||||
%%LLDB%%llvm%%LLVM_SUFFIX%%/%%PYTHON_SITELIBDIR%%/lldb/_lldb.so
|
||||
%%LLDB%%llvm%%LLVM_SUFFIX%%/%%PYTHON_SITELIBDIR%%/lldb/embedded_interpreter.py
|
||||
|
|
|
@ -131,55 +131,7 @@ PLIST_SUB+= LLVM_RELEASE=${LLVM_RELEASE} \
|
|||
LLVM_SUFFIX=${LLVM_SUFFIX} \
|
||||
LLVM_MAJOR=${LLVM_MAJOR}
|
||||
|
||||
COMMANDS= bugpoint \
|
||||
dsymutil \
|
||||
llc \
|
||||
lli \
|
||||
llvm-ar \
|
||||
llvm-as \
|
||||
llvm-bcanalyzer \
|
||||
llvm-cat \
|
||||
llvm-cfi-verify \
|
||||
llvm-config \
|
||||
llvm-cov \
|
||||
llvm-cvtres \
|
||||
llvm-cxxmap \
|
||||
llvm-diff \
|
||||
llvm-dis \
|
||||
llvm-dlltool \
|
||||
llvm-dwarfdump \
|
||||
llvm-dwp \
|
||||
llvm-elfabi \
|
||||
llvm-exegesis \
|
||||
llvm-extract \
|
||||
llvm-link \
|
||||
llvm-mc \
|
||||
llvm-mca \
|
||||
llvm-modextract \
|
||||
llvm-mt \
|
||||
llvm-nm \
|
||||
llvm-objcopy \
|
||||
llvm-objdump \
|
||||
llvm-opt-report \
|
||||
llvm-pdbutil \
|
||||
llvm-profdata \
|
||||
llvm-ranlib \
|
||||
llvm-rc \
|
||||
llvm-readelf \
|
||||
llvm-readobj \
|
||||
llvm-rtdyld \
|
||||
llvm-size \
|
||||
llvm-split \
|
||||
llvm-stress \
|
||||
llvm-strings \
|
||||
llvm-strip \
|
||||
llvm-symbolizer \
|
||||
llvm-tblgen \
|
||||
llvm-undname \
|
||||
llvm-xray \
|
||||
macho-dump \
|
||||
opt \
|
||||
sancov
|
||||
COMMANDS= ${LLVM_COMMANDS}
|
||||
FIRST_COMMAND= ${COMMANDS:C/^/XXXX/1:MXXXX*:C/^XXXX//}
|
||||
|
||||
STRIP_LIBS= BugpointPasses.so \
|
||||
|
@ -187,19 +139,6 @@ STRIP_LIBS= BugpointPasses.so \
|
|||
${LIBNAME}.0 \
|
||||
libLTO.so
|
||||
|
||||
EXTRAS_COMMANDS+= \
|
||||
clang-apply-replacements \
|
||||
clang-change-namespace \
|
||||
clang-doc \
|
||||
clang-include-fixer \
|
||||
clang-modernize \
|
||||
clang-query \
|
||||
clang-rename \
|
||||
clang-reorder-fields \
|
||||
clang-tidy \
|
||||
clangd \
|
||||
find-all-symbols \
|
||||
modularize
|
||||
EXTRAS_LIBS= libclangApplyReplacements \
|
||||
libclangChangeNamespace \
|
||||
libclangDaemon \
|
||||
|
@ -238,19 +177,7 @@ CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/arm64/aarch64/}-portbld-${OPSYS:tl}${
|
|||
# ----------- end of sync block --------------------
|
||||
|
||||
.if ${PORT_OPTIONS:MCLANG}
|
||||
COMMANDS+= c-index-test \
|
||||
clang \
|
||||
clang++ \
|
||||
clang-check \
|
||||
clang-cpp \
|
||||
clang-extdef-mapping \
|
||||
clang-format \
|
||||
clang-import-test \
|
||||
clang-offload-bundler \
|
||||
diagtool \
|
||||
hmaptool \
|
||||
scan-build \
|
||||
scan-view
|
||||
COMMANDS+= ${CLANG_COMMANDS}
|
||||
MAN1SRCS+= clang.1 \
|
||||
diagtool.1 \
|
||||
scan-build.1
|
||||
|
@ -265,36 +192,26 @@ USES+= gnome
|
|||
COMPILER_RT_PATTERN= (_blacklist.txt|sanitizer|include.xray)
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXTRAS}
|
||||
COMMANDS+= ${EXTRAS_COMMANDS}
|
||||
MAN1SRCS+= extraclangtools.1
|
||||
PORTDOCS+= clang-tools
|
||||
SHEBANG_FILES+= tools/clang/tools/extra/clang-tidy/tool/clang-tidy-diff.py \
|
||||
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
|
||||
tools/clang/tools/extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLIT}
|
||||
MAN1SRCS+= lit.1 FileCheck.1
|
||||
LIT_COMMANDS= lit llvm-lit FileCheck
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLD}
|
||||
COMMANDS+= ${LLD_COMMANDS}
|
||||
PORTDOCS+= lld
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLDB}
|
||||
COMMANDS+= lldb \
|
||||
lldb-argdumper \
|
||||
lldb-mi \
|
||||
lldb-server \
|
||||
lldb-test \
|
||||
lldb-vscode
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MCOMPILER_RT}
|
||||
# Hack to disable COMPILER_RT in plist of unsupported architectures
|
||||
PLIST_SUB+= COMPILER_RT="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MGOLD}
|
||||
# Hack to disable GOLD in plist of unsupported architectures
|
||||
PLIST_SUB+= GOLD="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MOPENMP}
|
||||
# Hack to disable OPENMP in plist of unsupported architectures
|
||||
PLIST_SUB+= OPENMP="@comment "
|
||||
.else
|
||||
COMMANDS+= ${LLDB_COMMANDS}
|
||||
.endif
|
||||
|
||||
MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
|
||||
|
@ -311,6 +228,7 @@ MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
|
|||
opt.1 tblgen.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include "${.CURDIR}/Makefile.COMMANDS"
|
||||
|
||||
FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC Sparc X86
|
||||
.if ${ARCH} == amd64
|
||||
|
@ -354,12 +272,6 @@ _BE_LIBS_${BE}+= ${_BE_LIBS_COMMON:S/^/${BE_ARCH}/} \
|
|||
.endfor
|
||||
BE_PATTERN=${_BE_LIBS_STANDARD:O:S/$/.a/:ts|}
|
||||
|
||||
# Use lld for armv6 on clang 7 and up to avoid binutils ld issues
|
||||
# PR: 235282
|
||||
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 70
|
||||
LDFLAGS_armv6=-fuse-ld=lld
|
||||
.endif
|
||||
|
||||
_CRTLIBDIR= ${LLVM_PREFIX:S|${PREFIX}/||}/lib/clang/${LLVM_RELEASE}/lib/freebsd
|
||||
_CRTBLDIR= ${LLVM_PREFIX:S|${PREFIX}/||}/share
|
||||
_COMPILER_RT_BLACKLISTS= cfi_blacklist.txt
|
||||
|
@ -430,34 +342,40 @@ _COMPILER_RT_LIBS+= \
|
|||
libclang_rt.ubsan_standalone_cxx-i386.a
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MEXTRAS}
|
||||
COMMANDS+= ${EXTRAS_COMMANDS}
|
||||
MAN1SRCS+= extraclangtools.1
|
||||
PORTDOCS+= clang-tools
|
||||
SHEBANG_FILES+= tools/clang/tools/extra/clang-tidy/tool/clang-tidy-diff.py \
|
||||
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
|
||||
tools/clang/tools/extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLLD}
|
||||
COMMANDS+= ld.lld \
|
||||
ld64.lld \
|
||||
lld \
|
||||
lld-link \
|
||||
wasm-ld
|
||||
PORTDOCS+= lld
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == "FreeBSD" && ${COMPILER_TYPE} != clang
|
||||
CXXFLAGS+= -D_GLIBCXX_USE_C99
|
||||
.endif
|
||||
|
||||
# Use lld for armv6 on clang 7 and up to avoid binutils ld issues
|
||||
# PR: 235282
|
||||
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 70
|
||||
LDFLAGS_armv6=-fuse-ld=lld
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "armv6"
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/ld:devel/binutils
|
||||
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
||||
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MCOMPILER_RT}
|
||||
# Hack to disable COMPILER_RT in plist of unsupported architectures
|
||||
PLIST_SUB+= COMPILER_RT="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MGOLD}
|
||||
# Hack to disable GOLD in plist of unsupported architectures
|
||||
PLIST_SUB+= GOLD="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
.if ! ${OPTIONS_DEFINE:MOPENMP}
|
||||
# Hack to disable OPENMP in plist of unsupported architectures
|
||||
PLIST_SUB+= OPENMP="@comment "
|
||||
.else
|
||||
.endif
|
||||
|
||||
post-extract-CLANG-on:
|
||||
${MV} ${WRKSRC_clang} ${PATCH_WRKSRC}/tools/clang
|
||||
|
||||
|
@ -627,50 +545,4 @@ check-commands:
|
|||
test -e ${STAGEDIR}${LLVM_PREFIX}/bin/${command}
|
||||
.endfor
|
||||
|
||||
.if make(svn-patch-llvm)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-llvm requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/llvm/trunk
|
||||
svn-patch-llvm:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-clang)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-clang requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/clang/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/cfe/trunk
|
||||
svn-patch-clang:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | \
|
||||
${SED} -E -e 's;^(---|\+\+\+) ;\1 tools/clang/;' >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-compiler-rt)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-compiler-rt requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/compiler-rt/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/compiler-rt/trunk
|
||||
svn-patch-compiler-rt:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | \
|
||||
${SED} -E -e 's;^(---|\+\+\+) ;\1 tools/compiler-rt/;' >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.if make(svn-patch-lldb)
|
||||
.if !defined(PATCH_REV)
|
||||
.error svn-patch-lldb requires that PATCH_REV be set
|
||||
.endif
|
||||
_PATCH_FILE=${FILESDIR}/lldb/patch-svn-${PATCH_REV}
|
||||
_LLVM_BASE=http://llvm.org/svn/llvm-project/lldb/trunk
|
||||
svn-patch-lldb:
|
||||
svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE}
|
||||
svn diff -c ${PATCH_REV} ${_LLVM_BASE} | >> ${_PATCH_FILE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
101
devel/llvm80/Makefile.COMMANDS
Normal file
101
devel/llvm80/Makefile.COMMANDS
Normal file
|
@ -0,0 +1,101 @@
|
|||
# $FreeBSD$
|
||||
|
||||
LLVM_COMMANDS= \
|
||||
bugpoint \
|
||||
dsymutil \
|
||||
llc \
|
||||
lli \
|
||||
llvm-ar \
|
||||
llvm-as \
|
||||
llvm-bcanalyzer \
|
||||
llvm-cat \
|
||||
llvm-cfi-verify \
|
||||
llvm-config \
|
||||
llvm-cov \
|
||||
llvm-cvtres \
|
||||
llvm-cxxmap \
|
||||
llvm-diff \
|
||||
llvm-dis \
|
||||
llvm-dlltool \
|
||||
llvm-dwarfdump \
|
||||
llvm-dwp \
|
||||
llvm-elfabi \
|
||||
llvm-exegesis \
|
||||
llvm-extract \
|
||||
llvm-link \
|
||||
llvm-mc \
|
||||
llvm-mca \
|
||||
llvm-modextract \
|
||||
llvm-mt \
|
||||
llvm-nm \
|
||||
llvm-objcopy \
|
||||
llvm-objdump \
|
||||
llvm-opt-report \
|
||||
llvm-pdbutil \
|
||||
llvm-profdata \
|
||||
llvm-ranlib \
|
||||
llvm-rc \
|
||||
llvm-readelf \
|
||||
llvm-readobj \
|
||||
llvm-rtdyld \
|
||||
llvm-size \
|
||||
llvm-split \
|
||||
llvm-stress \
|
||||
llvm-strings \
|
||||
llvm-strip \
|
||||
llvm-symbolizer \
|
||||
llvm-tblgen \
|
||||
llvm-undname \
|
||||
llvm-xray \
|
||||
macho-dump \
|
||||
opt \
|
||||
sancov
|
||||
|
||||
CLANG_COMMANDS= \
|
||||
c-index-test \
|
||||
clang \
|
||||
clang++ \
|
||||
clang-check \
|
||||
clang-cpp \
|
||||
clang-extdef-mapping \
|
||||
clang-format \
|
||||
clang-import-test \
|
||||
clang-offload-bundler \
|
||||
diagtool \
|
||||
hmaptool \
|
||||
scan-build \
|
||||
scan-view
|
||||
|
||||
EXTRAS_COMMANDS= \
|
||||
clang-apply-replacements \
|
||||
clang-change-namespace \
|
||||
clang-doc \
|
||||
clang-include-fixer \
|
||||
clang-modernize \
|
||||
clang-query \
|
||||
clang-rename \
|
||||
clang-reorder-fields \
|
||||
clang-tidy \
|
||||
clangd \
|
||||
find-all-symbols \
|
||||
modularize
|
||||
|
||||
LIT_COMMANDS= \
|
||||
FileCheck \
|
||||
lit \
|
||||
llvm-lit
|
||||
|
||||
LLD_COMMANDS= \
|
||||
ld.lld \
|
||||
ld64.lld \
|
||||
lld \
|
||||
lld-link \
|
||||
wasm-ld
|
||||
|
||||
LLDB_COMMANDS= \
|
||||
lldb \
|
||||
lldb-argdumper \
|
||||
lldb-mi \
|
||||
lldb-server \
|
||||
lldb-test \
|
||||
lldb-vscode
|
|
@ -62,12 +62,6 @@ bin/diagtool%%LLVM_SUFFIX%%
|
|||
bin/hmaptool%%LLVM_SUFFIX%%
|
||||
%%CLANG%%bin/scan-build%%LLVM_SUFFIX%%
|
||||
%%CLANG%%bin/scan-view%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-argdumper%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-mi%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-server%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-test%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-vscode%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-apply-replacements%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-change-namespace%%LLVM_SUFFIX%%
|
||||
%%EXTRAS%%bin/clang-doc%%LLVM_SUFFIX%%
|
||||
|
@ -85,12 +79,18 @@ bin/hmaptool%%LLVM_SUFFIX%%
|
|||
%%LLD%%bin/lld%%LLVM_SUFFIX%%
|
||||
%%LLD%%bin/lld-link%%LLVM_SUFFIX%%
|
||||
%%LLD%%bin/wasm-ld%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-argdumper%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-mi%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-server%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-test%%LLVM_SUFFIX%%
|
||||
%%LLDB%%bin/lldb-vscode%%LLVM_SUFFIX%%
|
||||
%%LIT%%bin/FileCheck%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/FileCheck
|
||||
%%LIT%%bin/lit%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/lit
|
||||
%%LIT%%bin/llvm-lit%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/llvm-lit
|
||||
%%LIT%%bin/FileCheck%%LLVM_SUFFIX%%
|
||||
%%LIT%%llvm%%LLVM_SUFFIX%%/bin/FileCheck
|
||||
%%LLDB%%llvm%%LLVM_SUFFIX%%/%%PYTHON_SITELIBDIR%%/lldb/__init__.py
|
||||
%%LLDB%%llvm%%LLVM_SUFFIX%%/%%PYTHON_SITELIBDIR%%/lldb/_lldb.so
|
||||
%%LLDB%%llvm%%LLVM_SUFFIX%%/%%PYTHON_SITELIBDIR%%/lldb/embedded_interpreter.py
|
||||
|
|
Loading…
Reference in a new issue