svn commit: r317599 - in stable: 10/lib/clang 10/lib/clang/include/llvm/Config 11/lib/clang 11/lib/clang/include/llvm/Config
Dimitry Andric
dim at FreeBSD.org
Sat Apr 29 23:26:38 UTC 2017
Author: dim
Date: Sat Apr 29 23:26:36 2017
New Revision: 317599
URL: https://svnweb.freebsd.org/changeset/base/317599
Log:
MFC r317214:
Turn off llvm/clang's ENABLE_BACKTRACES setting, since it never worked
properly anyway. (Upstream has reorganized this somewhat in the mean
time, but for proper backtraces we would need llvm-symbolizer in base.)
MFC r317215:
Add function and data sections when building llvm, clang, lld and lldb,
and allow the linker to garbage collect them. This shaves off up to a
few MB from the final executables.
Modified:
stable/10/lib/clang/clang.build.mk
stable/10/lib/clang/include/llvm/Config/config.h
Directory Properties:
stable/10/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/11/lib/clang/include/llvm/Config/config.h
stable/11/lib/clang/llvm.build.mk
Directory Properties:
stable/11/ (props changed)
Modified: stable/10/lib/clang/clang.build.mk
==============================================================================
--- stable/10/lib/clang/clang.build.mk Sat Apr 29 21:48:11 2017 (r317598)
+++ stable/10/lib/clang/clang.build.mk Sat Apr 29 23:26:36 2017 (r317599)
@@ -31,7 +31,9 @@ TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x8
BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/}-unknown-freebsd10.3
CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \
-DLLVM_HOST_TRIPLE=\"${BUILD_TRIPLE}\" \
- -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\"
+ -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\" \
+ -ffunction-sections -fdata-sections
+LDFLAGS+= -Wl,--gc-sections
CXXFLAGS+= -fno-exceptions -fno-rtti
.PATH: ${LLVM_SRCS}/${SRCDIR}
Modified: stable/10/lib/clang/include/llvm/Config/config.h
==============================================================================
--- stable/10/lib/clang/include/llvm/Config/config.h Sat Apr 29 21:48:11 2017 (r317598)
+++ stable/10/lib/clang/include/llvm/Config/config.h Sat Apr 29 23:26:36 2017 (r317599)
@@ -24,7 +24,7 @@
/* #undef DEFAULT_SYSROOT */
/* Define if you want backtraces on crash */
-#define ENABLE_BACKTRACES 1
+#define ENABLE_BACKTRACES 0
/* Define to enable crash handling overrides */
#define ENABLE_CRASH_OVERRIDES 1
More information about the svn-src-all
mailing list