From 70538df621421ce04b5c5d7e1f5b62d5a7f9fc7a Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 2 Feb 2013 22:28:29 +0000 Subject: Pull in r170135 from upstream clang trunk: Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user specifies not to. Dont build ASTMatchers with Rewriter disabled and StaticAnalyzer when it's disabled. Without all those three, the clang binary shrinks (x86_64) from ~36MB to ~32MB (unstripped). To disable these clang components, and get a smaller clang binary built and installed, set WITHOUT_CLANG_FULL in src.conf(5). During the initial stages of buildworld, those extra components are already disabled automatically, to save some build time. MFC after: 1 week --- tools/build/options/WITHOUT_CLANG_FULL | 3 +++ tools/build/options/WITH_CLANG_FULL | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tools/build/options/WITHOUT_CLANG_FULL create mode 100644 tools/build/options/WITH_CLANG_FULL (limited to 'tools') diff --git a/tools/build/options/WITHOUT_CLANG_FULL b/tools/build/options/WITHOUT_CLANG_FULL new file mode 100644 index 0000000..418b7d6 --- /dev/null +++ b/tools/build/options/WITHOUT_CLANG_FULL @@ -0,0 +1,3 @@ +.\" $FreeBSD$ +Set to avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of +the Clang C/C++ compiler. diff --git a/tools/build/options/WITH_CLANG_FULL b/tools/build/options/WITH_CLANG_FULL new file mode 100644 index 0000000..59b4dec --- /dev/null +++ b/tools/build/options/WITH_CLANG_FULL @@ -0,0 +1,3 @@ +.\" $FreeBSD$ +Set to build the ARCMigrate, Rewriter and StaticAnalyzer components of the +Clang C/C++ compiler. -- cgit v1.1