svn commit: r303394 - head/share/mk

Ed Maste emaste at FreeBSD.org
Wed Jul 27 16:01:45 UTC 2016


Author: emaste
Date: Wed Jul 27 16:01:44 2016
New Revision: 303394
URL: https://svnweb.freebsd.org/changeset/base/303394

Log:
  Enable LLVM libunwind by default on amd64 and i386
  
  It is a maintained and updated runtime exception stack unwinder that
  should be a drop-in replacement.
  
  It can be disabled by setting WITHOUT_LLVM_LIBUNWIND in src.conf.
  
  PR:		206039 [exp-run]
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/share/mk/src.opts.mk

Modified: head/share/mk/src.opts.mk
==============================================================================
--- head/share/mk/src.opts.mk	Wed Jul 27 15:14:11 2016	(r303393)
+++ head/share/mk/src.opts.mk	Wed Jul 27 16:01:44 2016	(r303394)
@@ -235,15 +235,18 @@ __DEFAULT_NO_OPTIONS+=CLANG CLANG_BOOTST
 # 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+=LLVM_LIBUNWIND
-.else
-__DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND
 .endif
 .if ${__T} == "riscv64"
 BROKEN_OPTIONS+=PROFILE # "sorry, unimplemented: profiler support for RISC-V"
 BROKEN_OPTIONS+=TESTS   # "undefined reference to `_Unwind_Resume'"
 BROKEN_OPTIONS+=CXX     # "libcxxrt.so: undefined reference to `_Unwind_Resume_or_Rethrow'"
 .endif
+.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" || \
+    ${__T} == "riscv64"
+__DEFAULT_YES_OPTIONS+=LLVM_LIBUNWIND
+.else
+__DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND
+.endif
 .if ${__T} == "aarch64" || ${__T} == "amd64"
 __DEFAULT_YES_OPTIONS+=LLDB
 .else


More information about the svn-src-head mailing list