aboutsummaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-06-24 17:03:42 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-06-24 17:03:42 +0000
commit0a9ab9f549b413fa2febee9706cf7d4e330f961a (patch)
treead355d54f6114efa21fb324877d058eab32015ec /tools/build
parent1388cfe1b500db39d4858083f333e50c0f80b5e4 (diff)
Notes
Diffstat (limited to 'tools/build')
-rw-r--r--tools/build/mk/OptionalObsoleteFiles.inc5
-rw-r--r--tools/build/options/WITH_CLANG_FORMAT2
2 files changed, 6 insertions, 1 deletions
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index 0cfa34714133f..f2633da403515 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -1481,7 +1481,6 @@ OLD_FILES+=usr/share/man/man1/llvm-tblgen.1.gz
.if ${MK_CLANG_EXTRAS} == no
OLD_FILES+=usr/bin/bugpoint
-OLD_FILES+=usr/bin/clang-format
OLD_FILES+=usr/bin/llc
OLD_FILES+=usr/bin/lli
OLD_FILES+=usr/bin/llvm-as
@@ -1517,6 +1516,10 @@ OLD_FILES+=usr/share/man/man1/llvm-pdbutil.1.gz
OLD_FILES+=usr/share/man/man1/opt.1.gz
.endif
+.if ${MK_CLANG_EXTRAS} == no && ${MK_CLANG_FORMAT} == no
+OLD_FILES+=usr/bin/clang-format
+.endif
+
.if ${MK_CPP} == no
OLD_FILES+=usr/bin/cpp
OLD_FILES+=usr/share/man/man1/cpp.1.gz
diff --git a/tools/build/options/WITH_CLANG_FORMAT b/tools/build/options/WITH_CLANG_FORMAT
new file mode 100644
index 0000000000000..0483ffca70948
--- /dev/null
+++ b/tools/build/options/WITH_CLANG_FORMAT
@@ -0,0 +1,2 @@
+.\" $FreeBSD$
+Set to build clang-format.