aboutsummaryrefslogtreecommitdiff
path: root/tools/build/options/WITH_GCC_BOOTSTRAP
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2014-04-18 17:03:58 +0000
committerWarner Losh <imp@FreeBSD.org>2014-04-18 17:03:58 +0000
commit2bf36e7e089fedc7bb1ef22bb22211e6ed88a1ee (patch)
tree04a3a7ae5a3e2ee005a82992aa612466d9e72ea6 /tools/build/options/WITH_GCC_BOOTSTRAP
parent0abe2561f6f88be90b95e6a5a18222694d39110a (diff)
downloadsrc-2bf36e7e089fedc7bb1ef22bb22211e6ed88a1ee.tar.gz
src-2bf36e7e089fedc7bb1ef22bb22211e6ed88a1ee.zip
Separate out enabling building clang and/or gcc for the system and
building clang and/or gcc as the bootstrap compiler. Normally, the default compiler is used. WITH_CLANG_BOOTSTRAP and/or WITH_GCC_BOOTSTRAP will enable building these compilers as part bootstrap phase. WITH/WITHOUT_CLANG_IS_CC controls which compiler is used by default for the bootstrap phase, as well as which compiler is installed as cc. buildworld now successfully completes building the cross compiler with WITHOUT_CLANG=t and WITHOUT_GCC=t and produces a built system with neither of these included. Similarlly, MK_BINUTILS_BOOTSTRAP controls whether binutils is built during this phase. WITHOUT_CROSS_COMPILER will now force MK_BINUTILS_BOOTSTRAP=no, MK_CLANG_BOOTSTRAP=no and MK_GCC_BOOTSTRAP=no. BOOTSTRAP_COMPILER was considered, but rejected, since pc98 needs both clang and gcc to bootstrap still. It should be revisisted in the future if this requirement goes away. Values should be gcc, clang or none. It could also be a list. The odd interaction with Xfoo cross/external tools needs work, but is beyond the scope of this change as well.
Notes
Notes: svn path=/head/; revision=264660
Diffstat (limited to 'tools/build/options/WITH_GCC_BOOTSTRAP')
-rw-r--r--tools/build/options/WITH_GCC_BOOTSTRAP2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/build/options/WITH_GCC_BOOTSTRAP b/tools/build/options/WITH_GCC_BOOTSTRAP
new file mode 100644
index 000000000000..8e04b11fb483
--- /dev/null
+++ b/tools/build/options/WITH_GCC_BOOTSTRAP
@@ -0,0 +1,2 @@
+.\" $FreeBSD$
+Set to build gcc and g++ as part of the bootstrap process.