File tree Expand file tree Collapse file tree 5 files changed +21
-14
lines changed
Expand file tree Collapse file tree 5 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/nul
77RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
88RUN sudo apt-get update && sudo apt-get install -y cmake
99
10- # Install pre-commit
11- RUN sudo apt-get install -y pipx && pipx install pre-commit
10+ # Install pre-commit and ninja
11+ RUN sudo apt-get install -y pipx && pipx install pre-commit && pipx install ninja
1212
1313# Newer gcc/ llvm is needed to avoid ASAN Stalling
1414# See: https://github.com/google/sanitizers/issues/1614
15- # Minimal vesion : clang-18.1.3, gcc-13.2
15+ # Minimal version : clang-18.1.3, gcc-13.2
1616RUN sudo apt-get install -y gcc-14
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ repos:
2020
2121 # CMake linting and formatting
2222 - repo : https://github.com/BlankSpruce/gersemi
23- rev : 0.15.1
23+ rev : 0.20.0
2424 hooks :
2525 - id : gersemi
2626 name : CMake linting
2727
2828 # Markdown linting
2929 # Config file: .markdownlint.yaml
30- - repo : https://github.com/igorshubovych/markdownlint-cli
31- rev : v0.42.0
32- hooks :
33- - id : markdownlint
30+ # - repo: https://github.com/igorshubovych/markdownlint-cli
31+ # rev: v0.42.0
32+ # hooks:
33+ # - id: markdownlint
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22
3- cmake_minimum_required (VERSION 3.28)
3+ cmake_minimum_required (VERSION 3.28...4.1 )
44
55project (
66 beman.scope
@@ -16,7 +16,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSIO
1616 set (CMAKE_CXX_SCAN_FOR_MODULES 1)
1717elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15)
1818 set (CMAKE_CXX_SCAN_FOR_MODULES 1)
19- elseif ()
19+ else ()
2020 set (CMAKE_CXX_SCAN_FOR_MODULES 0)
2121endif ()
2222
@@ -116,7 +116,8 @@ if(BEMAN_SCOPE_INSTALL_CONFIG_FILE_PACKAGE)
116116 EXPORT beman.scope-targets
117117 DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/beman.scope
118118 NAMESPACE beman::
119- CXX_MODULES_DIRECTORY cxx-modules
119+ CXX_MODULES_DIRECTORY
120+ cxx-modules
120121 COMPONENT beman.scope
121122 )
122123endif ()
Original file line number Diff line number Diff line change 5555 " _debug-base"
5656 ],
5757 "cacheVariables" : {
58- "CMAKE_TOOLCHAIN_FILE" : " cmake/appleclang -toolchain.cmake"
58+ "CMAKE_TOOLCHAIN_FILE" : " cmake/llvm -toolchain.cmake"
5959 }
6060 },
6161 {
6666 " _release-base"
6767 ],
6868 "cacheVariables" : {
69- "CMAKE_TOOLCHAIN_FILE" : " cmake/appleclang -toolchain.cmake"
69+ "CMAKE_TOOLCHAIN_FILE" : " cmake/llvm -toolchain.cmake"
7070 }
7171 },
7272 {
Original file line number Diff line number Diff line change @@ -11,7 +11,13 @@ FetchContent_MakeAvailable(Catch2)
1111
1212# module tests will only compile with gcc15 or clang20 and above
1313if (CMAKE_CXX_SCAN_FOR_MODULES)
14- set (ALL_TESTNAMES scope_success scope_exit scope_fail unique_resource module)
14+ set (ALL_TESTNAMES
15+ scope_success
16+ scope_exit
17+ scope_fail
18+ unique_resource
19+ module
20+ )
1521else ()
1622 set (ALL_TESTNAMES scope_success scope_exit scope_fail unique_resource)
1723endif ()
You can’t perform that action at this time.
0 commit comments