diff --git a/profiles/clang_coverage b/profiles/clang_coverage new file mode 100644 index 0000000..c4ece02 --- /dev/null +++ b/profiles/clang_coverage @@ -0,0 +1,26 @@ +[settings] +os=Linux +arch=x86_64 +compiler=clang +compiler.version=21 +compiler.libcxx=libstdc++11 +compiler.cppstd=20 +compiler.cstd=17 +build_type=Debug +[conf] +tools.cmake.cmaketoolchain:extra_variables={'CMAKE_CXX_COMPILER_LAUNCHER': 'ccache', 'CMAKE_C_COMPILER_LAUNCHER': 'ccache'} +tools.cmake.cmaketoolchain:generator=Ninja +tools.system.package_manager:mode=install +tools.system.package_manager:sudo=True +tools.build:compiler_executables={"c": "clang", "cpp": "clang++"} + +tools.build:exelinkflags=["-fuse-ld=mold", "-fprofile-instr-generate"] +tools.build:sharedlinkflags=["-fuse-ld=mold", "-fprofile-instr-generate"] + +tools.build:cflags=[] +tools.build:cxxflags=[] +&:tools.build:cflags=["-Wall", "-Wextra", "-Wpedantic", "-Werror", "-ffast-math", "-fprofile-instr-generate", "-fcoverage-mapping"] +&:tools.build:cxxflags=["-Wall", "-Wextra", "-Wpedantic", "-Werror", "-fno-exceptions", "-fno-rtti", "-ffast-math", "-fprofile-instr-generate", "-fcoverage-mapping"] + +[tool_requires] +!cmake/*: cmake/[>=4.2] \ No newline at end of file