git: 20a66ab4bf85 - main - Retire CLANG_IS_CC option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Nov 2022 19:56:50 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=20a66ab4bf8511e51e11321b775d36c92e77fa69
commit 20a66ab4bf8511e51e11321b775d36c92e77fa69
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-09-29 18:15:39 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-11-21 19:56:13 +0000
Retire CLANG_IS_CC option
A small reduction in build infrastructure complexity; when we had both
Clang and GCC in the tree it was useful to have both built, and choose
one or the other to install as /usr/bin/cc. Now only Clang is in the
tree, and there is no point in building and installing base Clang but
not providing it as cc (and c++, cpp).
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37075
---
Makefile.inc1 | 1 -
UPDATING | 4 ++++
share/man/man5/src.conf.5 | 8 +-------
share/mk/src.opts.mk | 1 -
tools/build/options/WITHOUT_CLANG_IS_CC | 6 ------
tools/build/options/WITH_CLANG_IS_CC | 6 ------
usr.bin/clang/clang/Makefile | 3 +--
7 files changed, 6 insertions(+), 23 deletions(-)
diff --git a/Makefile.inc1 b/Makefile.inc1
index c14d801254c4..112f335d7c11 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -759,7 +759,6 @@ TMAKE= \
# TOOLS_PREFIX set in BMAKE
XMAKE= ${BMAKE} \
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
- MK_CLANG_IS_CC=${MK_CLANG_BOOTSTRAP} \
MK_LLDB=no \
MK_LLVM_BINUTILS=no \
MK_TESTS=no
diff --git a/UPDATING b/UPDATING
index 5e94336a82f2..3782692c2a49 100644
--- a/UPDATING
+++ b/UPDATING
@@ -27,6 +27,10 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 14.x IS SLOW:
world, or to merely disable the most expensive debugging functionality
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
+20221121:
+ The WITHOUT_CLANG_IS_CC option has been removed. When Clang is enabled
+ it is always installed as /usr/bin/cc (and c++, cpp).
+
20221026:
Some programs have been moved into separate packages. It is recommended
for pkgbase users to do:
diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5
index e6a1fc52a23e..132a05065bd0 100644
--- a/share/man/man5/src.conf.5
+++ b/share/man/man5/src.conf.5
@@ -1,6 +1,6 @@
.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
.\" $FreeBSD$
-.Dd November 18, 2022
+.Dd November 21, 2022
.Dt SRC.CONF 5
.Os
.Sh NAME
@@ -386,12 +386,6 @@ Build clang-format.
.It Va WITHOUT_CLANG_FULL
Avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
the Clang C/C++ compiler.
-.It Va WITHOUT_CLANG_IS_CC
-Do not install links to the Clang C/C++ compiler as
-.Pa /usr/bin/cc ,
-.Pa /usr/bin/c++
-and
-.Pa /usr/bin/cpp .
.It Va WITHOUT_CLEAN
Do not clean before building world and/or kernel.
.It Va WITHOUT_CPP
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 5089a034350d..adb6912daa7d 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -81,7 +81,6 @@ __DEFAULT_YES_OPTIONS = \
CDDL \
CLANG \
CLANG_BOOTSTRAP \
- CLANG_IS_CC \
CLEAN \
CPP \
CROSS_COMPILER \
diff --git a/tools/build/options/WITHOUT_CLANG_IS_CC b/tools/build/options/WITHOUT_CLANG_IS_CC
deleted file mode 100644
index 85d80ad476a5..000000000000
--- a/tools/build/options/WITHOUT_CLANG_IS_CC
+++ /dev/null
@@ -1,6 +0,0 @@
-.\" $FreeBSD$
-Do not install links to the Clang C/C++ compiler as
-.Pa /usr/bin/cc ,
-.Pa /usr/bin/c++
-and
-.Pa /usr/bin/cpp .
diff --git a/tools/build/options/WITH_CLANG_IS_CC b/tools/build/options/WITH_CLANG_IS_CC
deleted file mode 100644
index 9ab78c569dd2..000000000000
--- a/tools/build/options/WITH_CLANG_IS_CC
+++ /dev/null
@@ -1,6 +0,0 @@
-.\" $FreeBSD$
-Install links to the Clang C/C++ compiler as
-.Pa /usr/bin/cc ,
-.Pa /usr/bin/c++
-and
-.Pa /usr/bin/cpp .
diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile
index 31f092608583..b3f1ff965634 100644
--- a/usr.bin/clang/clang/Makefile
+++ b/usr.bin/clang/clang/Makefile
@@ -19,7 +19,7 @@ LINKS= ${BINDIR}/clang ${BINDIR}/clang++ \
${BINDIR}/clang ${BINDIR}/clang-cpp
MLINKS= clang.1 clang++.1 \
clang.1 clang-cpp.1
-.if ${MK_CLANG_IS_CC} != "no"
+
SCRIPTS=CC.sh
SCRIPTSNAME=CC
@@ -30,7 +30,6 @@ MLINKS+= clang.1 cc.1 \
clang.1 c++.1 \
clang.1 CC.1 \
clang.1 cpp.1
-.endif
LIBADD+= z