git: 0222663900dc - main - devel/llvm11: Add BE_WASM option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 01 Dec 2021 16:26:15 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0222663900dcbbc905dc8d7c0dea37b55300ed55
commit 0222663900dcbbc905dc8d7c0dea37b55300ed55
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2021-12-01 16:24:52 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2021-12-01 16:25:54 +0000
devel/llvm11: Add BE_WASM option
When set, always build the WebAssembly backend (now required by Firefox
via wasi). This option effects BE_FREEBSD and BE_NATIVE. It has no
effect on BE_STANDARD.
This option is enabled by default.
---
devel/llvm11/Makefile | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/devel/llvm11/Makefile b/devel/llvm11/Makefile
index 8d723d56e8ba..992203d6ee61 100644
--- a/devel/llvm11/Makefile
+++ b/devel/llvm11/Makefile
@@ -1,6 +1,6 @@
PORTNAME= llvm
DISTVERSION= 11.0.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel lang
MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}
@@ -63,14 +63,14 @@ CMAKE_ARGS+= -DLLVM_ENABLE_TERMINFO=OFF
CFLAGS+= -DNDEBUG
CXXFLAGS+= -DNDEBUG
-OPTIONS_DEFINE= BE_AMDGPU CLANG DOCS EXTRAS LIT LLD LLDB PYCLANG
+OPTIONS_DEFINE= BE_AMDGPU BE_WASM CLANG DOCS EXTRAS LIT LLD LLDB PYCLANG
OPTIONS_DEFINE_aarch64= OPENMP
OPTIONS_DEFINE_amd64= COMPILER_RT GOLD OPENMP
OPTIONS_DEFINE_i386= COMPILER_RT OPENMP
OPTIONS_DEFINE_powerpc= GOLD
OPTIONS_DEFINE_powerpc64= GOLD OPENMP
OPTIONS_DEFINE_powerpc64le= GOLD OPENMP
-OPTIONS_DEFAULT= BE_AMDGPU BE_STANDARD CLANG EXTRAS LIT LLD LLDB PYCLANG
+OPTIONS_DEFAULT= BE_AMDGPU BE_STANDARD BE_WASM CLANG EXTRAS LIT LLD LLDB PYCLANG
OPTIONS_DEFAULT_aarch64= OPENMP
OPTIONS_DEFAULT_amd64= COMPILER_RT GOLD OPENMP
OPTIONS_DEFAULT_i386= COMPILER_RT OPENMP
@@ -89,6 +89,7 @@ BE_FREEBSD_CMAKE_ON= -DLLVM_TARGETS_TO_BUILD="${FREEBSD_BACKENDS:ts;}"
BE_NATIVE_DESC= Backend(s) for this architecture (${_NATIVE_BACKENDS})
BE_NATIVE_CMAKE_ON= -DLLVM_TARGETS_TO_BUILD="${NATIVE_BACKENDS:ts;}"
BE_STANDARD_DESC= All non-experimental backends
+BE_WASM_DESC= WebAssembly backend (required by firefox via wasi)
.for BE in FREEBSD NATIVE STANDARD
BE_${BE}_PLIST_FILES= ${_BE_LIBS_${BE}:O:S/$/.a/:S|^|${LLVM_DIR}/lib/libLLVM|}
.endfor
@@ -324,6 +325,10 @@ NATIVE_BACKENDS= ${_NATIVE_BACKENDS}
FREEBSD_BACKENDS+= AMDGPU
NATIVE_BACKENDS+= AMDGPU
.endif
+.if ${PORT_OPTIONS:MBE_WASM}
+FREEBSD_BACKENDS+= WebAssembly
+NATIVE_BACKENDS+= WebAssembly
+.endif
STANDARD_BACKENDS= ${_FREEBSD_BACKENDS} AMDGPU AVR BPF Hexagon Lanai \
MSP430 NVPTX SystemZ WebAssembly XCore
_BE_LIBS_COMMON= CodeGen Desc Info