[all-commits] [llvm/llvm-project] 72f988: [libclc] Refactor build system to allow in-tree bu...
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Thu Apr 11 09:09:29 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 72f9881c3ffcf4be6361c3e4312d91c9c8d94a98
https://github.com/llvm/llvm-project/commit/72f9881c3ffcf4be6361c3e4312d91c9c8d94a98
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2024-04-11 (Thu, 11 Apr 2024)
Changed paths:
M libclc/CMakeLists.txt
R libclc/cmake/CMakeCLCCompiler.cmake.in
R libclc/cmake/CMakeCLCInformation.cmake
R libclc/cmake/CMakeDetermineCLCCompiler.cmake
R libclc/cmake/CMakeDetermineLLAsmCompiler.cmake
R libclc/cmake/CMakeLLAsmCompiler.cmake.in
R libclc/cmake/CMakeLLAsmInformation.cmake
R libclc/cmake/CMakeTestCLCCompiler.cmake
R libclc/cmake/CMakeTestLLAsmCompiler.cmake
A libclc/cmake/modules/AddLibclc.cmake
M libclc/generic/lib/SOURCES
M llvm/tools/CMakeLists.txt
Log Message:
-----------
[libclc] Refactor build system to allow in-tree builds (#87622)
The previous build system was adding custom "OpenCL" and "LLVM IR"
languages in CMake to build the builtin libraries. This was making it
harder to build in-tree because the tool binaries needed to be present
at configure time.
This commit refactors the build system to use custom commands to build
the bytecode files one by one, and link them all together into the final
bytecode library. It also enables in-tree builds by aliasing the
clang/llvm-link/etc. tool targets to internal targets, which are
imported from the LLVM installation directory when building out of tree.
Diffing (with llvm-diff) all of the final bytecode libraries in an
out-of-tree configuration against those built using the current tip
system shows no changes. Note that there are textual changes to metadata
IDs which confuse regular diff, and that llvm-diff 14 and below may show
false-positives.
This commit also removes a file listed in one of the SOURCEs which
didn't exist and which was preventing the use of
ENABLE_RUNTIME_SUBNORMAL when configuring CMake.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list