summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-01-09 00:42:07 +0000
committeremaste <emaste@FreeBSD.org>2016-01-09 00:42:07 +0000
commitb88b2cfedcccee796c18c2898e226c63b9959fcc (patch)
treeba3eadca67152e1581a6aee881d2b42ca3a2ed0a /share/mk
parentf1d7628d6be0a172983bb0a8b843f1bbf704e1ef (diff)
downloadFreeBSD-src-b88b2cfedcccee796c18c2898e226c63b9959fcc.zip
FreeBSD-src-b88b2cfedcccee796c18c2898e226c63b9959fcc.tar.gz
Support use of LLVM's libunwind for exception unwinding
It is built in libgcc_s.so and libgcc_eh.a to simplify transition. It is enabled by default on arm64 (where we previously had no other unwinder) and may be enabled for testing on other platforms by setting WITH_LLVM_LIBUNWIND in src.conf(5). Also add compiler-rt's __gcc_personality_v0 implementation for use with the LLVM unwinder. Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4787
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/src.opts.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 47a67e0..678c31e 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -231,9 +231,9 @@ __DEFAULT_NO_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC
# In-tree binutils/gcc are older versions without modern architecture support.
.if ${__T} == "aarch64" || ${__T} == "riscv64"
BROKEN_OPTIONS+=BINUTILS BINUTILS_BOOTSTRAP GCC GCC_BOOTSTRAP GDB
-__DEFAULT_YES_OPTIONS+=ELFCOPY_AS_OBJCOPY
+__DEFAULT_YES_OPTIONS+=ELFCOPY_AS_OBJCOPY LLVM_LIBUNWIND
.else
-__DEFAULT_NO_OPTIONS+=ELFCOPY_AS_OBJCOPY
+__DEFAULT_NO_OPTIONS+=ELFCOPY_AS_OBJCOPY LLVM_LIBUNWIND
.endif
.if ${__T} == "riscv64"
BROKEN_OPTIONS+=PROFILE # "sorry, unimplemented: profiler support for RISC-V"
OpenPOWER on IntegriCloud