From 65ff605e44ef7e59a510de6c2d9b5e1615c8981f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 15 Feb 2023 12:52:09 +0800 Subject: 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 --- .gitlab/ci/cxx_modules_rules_clang.cmake | 9 +++++---- .gitlab/ci/docker/clang_cxx_modules/install_llvm.sh | 4 ++-- .gitlab/os-linux.yml | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitlab/ci/cxx_modules_rules_clang.cmake b/.gitlab/ci/cxx_modules_rules_clang.cmake index 4b80aab..fcb2281 100644 --- a/.gitlab/ci/cxx_modules_rules_clang.cmake +++ b/.gitlab/ci/cxx_modules_rules_clang.cmake @@ -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= --p1689-targeted-output= " - " --p1689-makeformat-output=" + " -format=p1689" " --" - " -x c++ " - " -MT -MD" + " " + " -x c++ -c -o " + " -MT " + " -MD -MF " " > ") set(CMAKE_EXPERIMENTAL_CXX_MODULE_MAP_FORMAT "clang") set(CMAKE_EXPERIMENTAL_CXX_MODULE_MAP_FLAG "@") diff --git a/.gitlab/ci/docker/clang_cxx_modules/install_llvm.sh b/.gitlab/ci/docker/clang_cxx_modules/install_llvm.sh index 025f8a2..35f925e 100755 --- a/.gitlab/ci/docker/clang_cxx_modules/install_llvm.sh +++ b/.gitlab/ci/docker/clang_cxx_modules/install_llvm.sh @@ -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" diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml index 8ab3fad..9a53401 100644 --- a/.gitlab/os-linux.yml +++ b/.gitlab/os-linux.yml @@ -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" -- cgit v0.12