Skip to content

Commit 5be71fa

Browse files
committed
[build] Rename clang-headers to clang-resource-headers
Summary: The current install-clang-headers target installs clang's resource directory headers. This is different from the install-llvm-headers target, which installs LLVM's API headers. We want to introduce the corresponding target to clang, and the natural name for that new target would be install-clang-headers. Rename the existing target to install-clang-resource-headers to free up the install-clang-headers name for the new target, following the discussion on cfe-dev [1]. I didn't find any bots on zorg referencing install-clang-headers. I'll send out another PSA to cfe-dev to accompany this rename. [1] http://lists.llvm.org/pipermail/cfe-dev/2019-February/061365.html Reviewers: beanz, phosek, tstellar, rnk, dim, serge-sans-paille Subscribers: mgorny, javed.absar, jdoerfert, #sanitizers, openmp-commits, lldb-commits, cfe-commits, llvm-commits Tags: #clang, #sanitizers, #lldb, #openmp, #llvm Differential Revision: https://reviews.llvm.org/D58791 llvm-svn: 355340
1 parent 0632e12 commit 5be71fa

File tree

23 files changed

+48
-37
lines changed

23 files changed

+48
-37
lines changed

clang-tools-extra/clang-tidy/tool/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ add_clang_tool(clang-tidy
99
ClangTidyMain.cpp
1010
)
1111
add_dependencies(clang-tidy
12-
clang-headers
12+
clang-resource-headers
1313
)
1414
target_link_libraries(clang-tidy
1515
PRIVATE

clang-tools-extra/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ set(CLANG_TOOLS_TEST_DEPS
5959
# For the clang-tidy libclang integration test.
6060
c-index-test
6161
# clang-tidy tests require it.
62-
clang-headers
62+
clang-resource-headers
6363

6464
clang-tidy
6565
)

clang/cmake/caches/Apple-stage2.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ set(LLVM_DISTRIBUTION_COMPONENTS
6060
clang
6161
LTO
6262
clang-format
63-
clang-headers
63+
clang-resource-headers
6464
cxx-headers
6565
${LLVM_TOOLCHAIN_TOOLS}
6666
CACHE STRING "")

clang/cmake/caches/BaremetalARM.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ set(LLVM_TOOLCHAIN_TOOLS
4141
set(LLVM_DISTRIBUTION_COMPONENTS
4242
clang
4343
lld
44-
clang-headers
44+
clang-resource-headers
4545
builtins-armv6m-none-eabi
4646
builtins-armv7m-none-eabi
4747
builtins-armv7em-none-eabi

clang/cmake/caches/DistributionExample-stage2.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set(LLVM_DISTRIBUTION_COMPONENTS
2323
clang
2424
LTO
2525
clang-format
26-
clang-headers
26+
clang-resource-headers
2727
builtins
2828
runtimes
2929
${LLVM_TOOLCHAIN_TOOLS}

clang/cmake/caches/Fuchsia-stage2.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ set(LLVM_DISTRIBUTION_COMPONENTS
167167
LTO
168168
clang-apply-replacements
169169
clang-format
170-
clang-headers
170+
clang-resource-headers
171171
clang-include-fixer
172172
clang-refactor
173173
clang-tidy

clang/cmake/modules/AddClang.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ macro(add_clang_tool name)
133133
endif()
134134

135135
add_clang_executable(${name} ${ARGN})
136-
add_dependencies(${name} clang-headers)
136+
add_dependencies(${name} clang-resource-headers)
137137

138138
if (CLANG_BUILD_TOOLS)
139139
if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR

clang/docs/LibTooling.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ Clang tools need their builtin headers and search for them the same way Clang
187187
does. Thus, the default location to look for builtin headers is in a path
188188
``$(dirname /path/to/tool)/../lib/clang/3.3/include`` relative to the tool
189189
binary. This works out-of-the-box for tools running from llvm's toplevel
190-
binary directory after building clang-headers, or if the tool is running from
191-
the binary directory of a clang install next to the clang binary.
190+
binary directory after building clang-resource-headers, or if the tool is
191+
running from the binary directory of a clang install next to the clang binary.
192192

193193
Tips: if your tool fails to find ``stddef.h`` or similar headers, call the tool
194194
with ``-v`` and look at the search paths it looks through.

clang/docs/ReleaseNotes.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ ABI Changes in Clang
131131
- ...
132132

133133
OpenMP Support in Clang
134-
----------------------------------
134+
-----------------------
135135

136136
- Added emission of the debug information for NVPTX target devices.
137137

@@ -147,6 +147,17 @@ These are major API changes that have happened since the 8.0.0 release of
147147
Clang. If upgrading an external codebase that uses Clang as a library,
148148
this section should help get you past the largest hurdles of upgrading.
149149

150+
Build System Changes
151+
--------------------
152+
153+
These are major changes to the build system that have happened since the 8.0.0
154+
release of Clang. Users of the build system should adjust accordingly.
155+
156+
- In 8.0.0 and below, the install-clang-headers target would install clang's
157+
resource directory headers. This installation is now performed by the
158+
install-clang-resource-headers target. Users of the old install-clang-headers
159+
target should switch to the new install-clang-resource-headers target.
160+
150161
- ...
151162

152163
AST Matchers

clang/examples/clang-interpreter/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ add_clang_executable(clang-interpreter
1616
)
1717

1818
add_dependencies(clang-interpreter
19-
clang-headers
19+
clang-resource-headers
2020
)
2121

2222
target_link_libraries(clang-interpreter

0 commit comments

Comments
 (0)