mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
ci: use the latest clang-scan-deps options
P1689 support has been merged in Clang trunk and Clang 16 branch, so we are now able to use the finalized clang-scan-deps command line options. See also llvm-project's clang/test/ClangScanDeps/P1689.cppm [1] for the samples of clang-scan-deps usages. [1] https://github.com/llvm/llvm-project/blob/6d859df46e/clang/test/ClangScanDeps/P1689.cppm Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
This commit is contained in:
@@ -3,11 +3,12 @@ set(CMake_TEST_CXXModules_UUID "a246741c-d067-4019-a8fb-3d16b0c9d1d3")
|
||||
set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
|
||||
string(CONCAT CMAKE_EXPERIMENTAL_CXX_SCANDEP_SOURCE
|
||||
"${CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS}"
|
||||
" -format=p1689 --p1689-targeted-file-name=<SOURCE> --p1689-targeted-output=<OBJECT> "
|
||||
" --p1689-makeformat-output=<DEP_FILE>"
|
||||
" -format=p1689"
|
||||
" --"
|
||||
" <DEFINES> <INCLUDES> <FLAGS> -x c++ <SOURCE>"
|
||||
" -MT <DYNDEP_FILE> -MD"
|
||||
" <CMAKE_CXX_COMPILER> <DEFINES> <INCLUDES> <FLAGS>"
|
||||
" -x c++ <SOURCE> -c -o <OBJECT>"
|
||||
" -MT <DYNDEP_FILE>"
|
||||
" -MD -MF <DEP_FILE>"
|
||||
" > <DYNDEP_FILE>")
|
||||
set(CMAKE_EXPERIMENTAL_CXX_MODULE_MAP_FORMAT "clang")
|
||||
set(CMAKE_EXPERIMENTAL_CXX_MODULE_MAP_FLAG "@<MODULE_MAP_FILE>")
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
readonly revision="p1689r5-cmake-ci-20221215" # a0acf2c9285e848b65ec7336e185888163949490
|
||||
readonly tarball="https://github.com/mathstuf/llvm-project/archive/$revision.tar.gz"
|
||||
readonly revision="6d859df46e93e04bd7a4f90d9a9056763998f638" # llvmorg-16.0.0-rc2-31-g6d859df46e93
|
||||
readonly tarball="https://github.com/llvm/llvm-project/archive/$revision.tar.gz"
|
||||
|
||||
readonly workdir="$HOME/llvm"
|
||||
readonly srcdir="$workdir/llvm"
|
||||
|
||||
@@ -377,7 +377,7 @@
|
||||
CMAKE_GENERATOR: "Ninja Multi-Config"
|
||||
|
||||
.clang_cxx_modules_x86_64:
|
||||
image: "kitware/cmake:ci-clang_cxx_modules-x86_64-2022-12-15"
|
||||
image: "kitware/cmake:ci-clang_cxx_modules-x86_64-2023-02-15"
|
||||
|
||||
variables:
|
||||
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
|
||||
|
||||
Reference in New Issue
Block a user