more sanitizers

This commit is contained in:
2026-02-22 11:36:54 +01:00
committed by Romain BOULLARD
parent 56418bb401
commit a682d8ade2
3 changed files with 42 additions and 4 deletions

View File

@@ -27,13 +27,19 @@ jobs:
name: Debug (ASAN, LSAN, UBSAN) name: Debug (ASAN, LSAN, UBSAN)
- build_type: Debug - build_type: Debug
conan_profile: ./ConanProfiles/clangd2 conan_profile: ./ConanProfiles/clangd2
name: Debug (TSAN, MSAN) name: Debug (TSAN)
- build_type: Debug
conan_profile: ./ConanProfiles/clangd3
name: Debug (MSAN)
- build_type: RelWithDebInfo - build_type: RelWithDebInfo
conan_profile: ./ConanProfiles/clangd conan_profile: ./ConanProfiles/clangd
name: RelWithDebInfo (ASAN, LSAN, UBSAN) name: RelWithDebInfo (ASAN, LSAN, UBSAN)
- build_type: RelWithDebInfo - build_type: RelWithDebInfo
conan_profile: ./ConanProfiles/clangd2 conan_profile: ./ConanProfiles/clangd2
name: RelWithDebInfo (TSAN, MSAN) name: RelWithDebInfo (TSAN)
- build_type: RelWithDebInfo
conan_profile: ./ConanProfiles/clangd3
name: RelWithDebInfo (MSAN)
name: "Build & Test ${{ matrix.name }}" name: "Build & Test ${{ matrix.name }}"
steps: steps:
- name: Install Node.js - name: Install Node.js

View File

@@ -11,8 +11,8 @@ build_type=Debug
[conf] [conf]
tools.cmake.cmaketoolchain:extra_variables={'CMAKE_CXX_COMPILER_LAUNCHER': 'ccache', 'CMAKE_C_COMPILER_LAUNCHER': 'ccache'} tools.cmake.cmaketoolchain:extra_variables={'CMAKE_CXX_COMPILER_LAUNCHER': 'ccache', 'CMAKE_C_COMPILER_LAUNCHER': 'ccache'}
tools.cmake.cmaketoolchain:extra_variables*={'BIN2CPP_CXX_FLAGS': {'value': '-Wall;-Wextra;-Wpedantic;-Werror;-fsanitize=memory,thread;-fno-sanitize-recover=all', 'cache': True, 'type': 'STRING', 'docstring': 'CXX flags for Bin2CPP', 'force': True}} tools.cmake.cmaketoolchain:extra_variables*={'BIN2CPP_CXX_FLAGS': {'value': '-Wall;-Wextra;-Wpedantic;-Werror;-fsanitize=thread;-fno-sanitize-recover=all', 'cache': True, 'type': 'STRING', 'docstring': 'CXX flags for Bin2CPP', 'force': True}}
tools.cmake.cmaketoolchain:extra_variables*={'BIN2CPP_EXE_LINK_FLAGS': {'value': '-fsanitize=memory,thread', 'cache': True, 'type': 'STRING', 'docstring': 'EXE link flags for Bin2CPP', 'force': True}} tools.cmake.cmaketoolchain:extra_variables*={'BIN2CPP_EXE_LINK_FLAGS': {'value': '-fsanitize=thread', 'cache': True, 'type': 'STRING', 'docstring': 'EXE link flags for Bin2CPP', 'force': True}}
tools.system.package_manager:mode=install tools.system.package_manager:mode=install
tools.system.package_manager:sudo=True tools.system.package_manager:sudo=True

32
ConanProfiles/clangd3 Normal file
View File

@@ -0,0 +1,32 @@
[settings]
os=Linux
arch=x86_64
compiler=clang
compiler.version=20
compiler.libcxx=libstdc++11
compiler.cppstd=20
compiler.cstd=17
compiler.runtime=static
build_type=Debug
[conf]
tools.cmake.cmaketoolchain:extra_variables={'CMAKE_CXX_COMPILER_LAUNCHER': 'ccache', 'CMAKE_C_COMPILER_LAUNCHER': 'ccache'}
tools.cmake.cmaketoolchain:extra_variables*={'BIN2CPP_CXX_FLAGS': {'value': '-Wall;-Wextra;-Wpedantic;-Werror;-fsanitize=memory;-fno-sanitize-recover=all', 'cache': True, 'type': 'STRING', 'docstring': 'CXX flags for Bin2CPP', 'force': True}}
tools.cmake.cmaketoolchain:extra_variables*={'BIN2CPP_EXE_LINK_FLAGS': {'value': '-fsanitize=memory', 'cache': True, 'type': 'STRING', 'docstring': 'EXE link flags for Bin2CPP', 'force': True}}
tools.system.package_manager:mode=install
tools.system.package_manager:sudo=True
tools.build:exelinkflags=["-fuse-ld=mold"]
tools.build:sharedlinkflags=["-fuse-ld=mold"]
tools.cmake.cmaketoolchain:generator=Ninja
tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
[tool_requires]
!cmake/*: cmake/[>=4.2]
[options]
Bin2CPP/*:asan=True
Bin2CPP/*:build_tests=True