The LLVM Project is a collection of modular and reusable compiler and
toolchain technologies.
This port includes Clang (a C/C++/Objective-C compiler), LLD (a linker),
LLDB (a debugger), an OpenMP runtime library, and the LLVM infrastructure
these are built on.
WWW: http://llvm.org/
===> The following configuration options are available for llvm37-3.7.1_5:
CLANG=on: Build clang
COMPILER_RT=on: Build compiler-rt (sanitizers)
DOCS=on: Build and/or install documentation
EXTRAS=on: Extra clang tools
GOLD=on: Build the LLVM Gold plugin for LTO
LIT=on: Install lit and FileCheck test tools
LLD=on: Install lld, the LLVM linker
LLDB=on: Install lldb, the LLVM debugger (ignored on 9.x)
OPENMP=on: Install libomp, the LLVM OpenMP runtime library
===> Use 'make config' to modify these settings
Update devel/cmake* to 3.7.1 [1]
Due to an upstream commit [2] we need now to pass
CMAKE_INSTALL_MANDIR:PATH="share/man" in the
devel/llvm-* ports, and fix the plist of net/remmina.
Further add an upstream patch to math/plplot to
fix the build with 3.7.1.
[1] https://cmake.org/cmake/help/v3.7/release/3.7.html
[2] https://github.com/kitware/cmake/commit/956054
PR: 214975
Approved by: rakuco (mentor)
Exp-run by: antoine
Apply upstream llvm r243590
Koop Mast reported that on FreeBSD 10.1-R i386, devel/libclc gets a build
error, when its 'prepare-builtins' segfaults. It turns out this is due to
a stack overflow, when recursively sorting an internal list. Upstream,
this was changed to an iterative operation, to prevent stack overflow in
some cases, here:
http://reviews.llvm.org/rL243590
------------------------------------------------------------------------
r243590 | matze | 2015-07-30 01:22:48 +0200 (Thu, 30 Jul 2015) | 9 lines
IR: Implement Value::mergeUseLists() iteratively
This avoids stack overflows when the the compiler does not perform tail
(Only the first 15 lines of the commit message are shown above )
Fix building LLD without LLDB by applying LLDB patches in the right case.
PR: 203890
Submitted by: Laurence 'GreenReaper' Parry <greenreaper@hotmail.com>
Add an option to build extra clang tools.
Add an insufficient set of patch toward building when the default python
is python 3. Scripts now run, but lldb uses APIs that have been
removed in C code.
Some small changes aimed at reducing future plist churn.
PR: 203618
Let cloudabi-clang install a compiler for aarch64.
Now that CloudABI has been ported over to aarch64, let's extend the
FreeBSD ports to install a functioning toolchain for it.
This change extend the llvm37 port to backport a tiny change that is
needed to make Clang support the CloudABI for aarch64 target (r250416).
This change makes Clang use the right ELFOSABI number, but also makes it
set the right #defines (e.g., __CloudABI__).
It also extends the cloudabi-clang port to set up symlinks against Clang
for aarch64.
Submitted by: ed
Differential Revision: https://reviews.freebsd.org/D3906
Upgrade to 3.7.0 RC3.
Enabled compiler-rt on amd64 and i386. Patches greatfully acepted for
other architectures.
Remove svn patches as an alternate fix has been merged.
Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.
Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.
Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)
Reviewed by: antoine, bapt
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3336
Apply a couple upstream clang patches to hopefully fix a crash building
blender with clang and openmp.
Reported by: Shane Ambler <FreeBSD@ShaneWare.Biz>
llvm{37,devel}: build and enable LLVM's gold plugin.
This makes it possible to use Link Time Optimisations in with
-fuse-ld=gold.
Reviewed by: brooks
Approved by: brooks
Differential Revision: https://reviews.freebsd.org/D3335
Disable LLDB when the chosen compiler is gcc.
On platforms where the system compiler isn't clang (including 9.x),
USES=compiler:c++11-lib uses gcc48 as the compiler. Unfortunatly, gcc48
does not provide a sufficently complient c++11 environment to build LLDB
when compiled on 9.x and possiably on other platforms.
Add LLVM 3.7 port at 3.7.0 RC1:
The LLVM Project is a collection of modular and reusable compiler and
toolchain technologies.
This port includes Clang (a C/C++/Objective-C compiler), LLD (a linker),
LLDB (a debugger), an OpenMP runtime library, and the LLVM infrastructure
these are built on.
Sponsored by: DARPA, AFRL