use toolchain variable when possible

This commit is contained in:
2026-01-31 10:31:39 +01:00
parent 000bde57b8
commit ea9149fde3
7 changed files with 14 additions and 72 deletions

View File

@@ -9,6 +9,8 @@ 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:extra_variables*={'BIGFOOT_CXX_FLAGS': {'value': '-Wall;-Wextra;-Wpedantic;-Werror;-ffast-math;-fno-exceptions;-fno-rtti', 'cache':True, 'type':'STRING', 'docstring':'CXX flags for Bigfoot', 'force':True}}
tools.cmake.cmaketoolchain:extra_variables*={'BIGFOOT_C_FLAGS': {'value': '-Wall;-Wextra;-Wpedantic;-Werror;-ffast-math', 'cache':True, 'type':'STRING', 'docstring':'C flags for Bigfoot', 'force':True}}
tools.cmake.cmaketoolchain:generator=Ninja
tools.system.package_manager:mode=install
tools.system.package_manager:sudo=True
@@ -17,10 +19,5 @@ tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
tools.build:exelinkflags=["-fuse-ld=mold"]
tools.build:sharedlinkflags=["-fuse-ld=mold"]
tools.build:cflags=[]
tools.build:cxxflags=[]
&:tools.build:cflags=["-Wall", "-Wextra", "-Wpedantic", "-Werror", "-ffast-math"]
&:tools.build:cxxflags=["-Wall", "-Wextra", "-Wpedantic", "-Werror", "-fno-exceptions", "-fno-rtti", "-ffast-math"]
[tool_requires]
!cmake/*: cmake/[>=4.2]