summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-06-05 23:05:04 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-06-05 23:05:04 +0000
commitf6ed7b91889f9da71cfca85da102895a43c42bd6 (patch)
treebc136e91eb33ec2fe9830d7c1ed69b550ba35d5f /share
parent1e55525ea32c9acb0bea8ca1899d5831910cf991 (diff)
downloadFreeBSD-src-f6ed7b91889f9da71cfca85da102895a43c42bd6.zip
FreeBSD-src-f6ed7b91889f9da71cfca85da102895a43c42bd6.tar.gz
WITH_SYSTEM_COMPILER: Disable with WITH_META_MODE for now.
The WITH_META_MODE build is intended to be a working incremental build. It spies on the build command to see if things should be rebuilt if the command changes. If you run buildworld, it builds a cross-compiler, then do installworld and buildworld again it will invoke the WITH_SYSTEM_COMPILER logic. This then adds on -target/--sysroot, etc, and causes rebuilds due to the changed build command even though the compiler used is technically the same revision. Since the incremental build is not cleaning anything by default then there is much less risk to rebuilding the already-existing cross-compiler. Just disable the combined logic and always use and build the cross-compiler. An alternative to this would be to always pass -target/--sysroot. Doing so may occur in the future. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share')
-rw-r--r--share/mk/src.opts.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 30fe118..e3ef419 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -352,6 +352,10 @@ MK_ELFTOOLCHAIN_BOOTSTRAP:= no
MK_GCC_BOOTSTRAP:= no
.endif
+.if ${MK_META_MODE} == "yes"
+MK_SYSTEM_COMPILER:= no
+.endif
+
.if ${MK_TOOLCHAIN} == "no"
MK_BINUTILS:= no
MK_CLANG:= no
OpenPOWER on IntegriCloud