llvm.org GIT mirror llvm / 0c844eb
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355340 91177308-0d34-0410-b5e6-96231b3b80d8 Shoaib Meenai 4 months ago
3 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
7878 ./llvm/utils/docker/build_docker_image.sh \
7979 --source debian8 \
8080 --docker-repository clang-debian8 --docker-tag "staging" \
81 -p clang -i install-clang -i install-clang-headers \
81 -p clang -i install-clang -i install-clang-resource-headers \
8282 -- \
8383 -DCMAKE_BUILD_TYPE=Release
8484
9494 ./build_docker_image.sh \
9595 --source debian8 \
9696 --docker-repository clang-debian8 --docker-tag "staging" \
97 -p clang -i stage2-install-clang -i stage2-install-clang-headers \
97 -p clang -i stage2-install-clang -i stage2-install-clang-resource-headers \
9898 -- \
9999 -DLLVM_TARGETS_TO_BUILD=Native -DCMAKE_BUILD_TYPE=Release \
100100 -DBOOTSTRAP_CMAKE_BUILD_TYPE=Release \
101 -DCLANG_ENABLE_BOOTSTRAP=ON -DCLANG_BOOTSTRAP_TARGETS="install-clang;install-clang-headers"
101 -DCLANG_ENABLE_BOOTSTRAP=ON -DCLANG_BOOTSTRAP_TARGETS="install-clang;install-clang-resource-headers"
102102
103103 This will produce a new image ``clang-debian8:staging`` from the latest
104104 upstream revision.
164164 ./llvm/utils/docker/build_docker_image.sh \
165165 -s debian8 --d clang-debian8 -t "staging" \
166166 --branch branches/google/stable \
167 -p clang -i install-clang -i install-clang-headers \
167 -p clang -i install-clang -i install-clang-resource-headers \
168168 -- \
169169 -DCMAKE_BUILD_TYPE=Release
170170
272272 if(compiler_rt_path)
273273 if(NOT LLVM_BUILTIN_TARGETS)
274274 builtin_default_target(${compiler_rt_path}
275 DEPENDS clang-headers)
275 DEPENDS clang-resource-headers)
276276 else()
277277 if("default" IN_LIST LLVM_BUILTIN_TARGETS)
278278 builtin_default_target(${compiler_rt_path}
279 DEPENDS clang-headers)
279 DEPENDS clang-resource-headers)
280280 list(REMOVE_ITEM LLVM_BUILTIN_TARGETS "default")
281281 else()
282282 add_custom_target(builtins)
286286
287287 foreach(target ${LLVM_BUILTIN_TARGETS})
288288 builtin_register_target(${compiler_rt_path} ${target}
289 DEPENDS clang-headers)
289 DEPENDS clang-resource-headers)
290290
291291 add_dependencies(builtins builtins-${target})
292292 add_dependencies(install-builtins install-builtins-${target})
5454
5555 For example, running:
5656 $ build_docker_image.sh -s debian8 -d mydocker/debian8-clang -t latest \
57 -p clang -i install-clang -i install-clang-headers
57 -p clang -i install-clang -i install-clang-resource-headers
5858 will produce two docker images:
5959 mydocker/debian8-clang-build:latest - an intermediate image used to compile
6060 clang.
6565
6666 To get a 2-stage clang build, you could use this command:
6767 $ ./build_docker_image.sh -s debian8 -d mydocker/clang-debian8 -t "latest" \
68 -p clang -i stage2-install-clang -i stage2-install-clang-headers \
68 -p clang -i stage2-install-clang -i stage2-install-clang-resource-headers \
6969 -- \
7070 -DLLVM_TARGETS_TO_BUILD=Native -DCMAKE_BUILD_TYPE=Release \
7171 -DBOOTSTRAP_CMAKE_BUILD_TYPE=Release \
7272 -DCLANG_ENABLE_BOOTSTRAP=ON \
73 -DCLANG_BOOTSTRAP_TARGETS="install-clang;install-clang-headers"
73 -DCLANG_BOOTSTRAP_TARGETS="install-clang;install-clang-resource-headers"
7474 EOF
7575 }
7676