conan: add [conf] sections for CMakeToolchain generators
This commit is contained in:
parent
4316939cac
commit
1cf517309b
@ -15,3 +15,7 @@ build_type=Debug
|
|||||||
[env]
|
[env]
|
||||||
CC=clang-18
|
CC=clang-18
|
||||||
CXX=clang++-18
|
CXX=clang++-18
|
||||||
|
|
||||||
|
[conf]
|
||||||
|
tools.build:compiler_executables={"c": "clang-18","cpp": "clang++-18"}
|
||||||
|
tools.build:cxxflags=[]
|
||||||
|
@ -16,5 +16,9 @@ build_type=Release
|
|||||||
[env]
|
[env]
|
||||||
CC=clang-18
|
CC=clang-18
|
||||||
CXX=clang++-18
|
CXX=clang++-18
|
||||||
CFLAGS="-flto"
|
CFLAGS=-flto
|
||||||
CXXFLAGS="-flto"
|
CXXFLAGS=-flto
|
||||||
|
|
||||||
|
[conf]
|
||||||
|
tools.build:cxxflags=["-flto", "-stdlib=libc++"]
|
||||||
|
tools.build:compiler_executables={"c": "clang-18","cpp": "clang++-18"}
|
||||||
|
@ -1,18 +1,25 @@
|
|||||||
|
VERSION=14
|
||||||
|
CC=gcc-$VERSION
|
||||||
|
CXX=g++-$VERSION
|
||||||
|
CXXFLAGS=-D_GLIBCXX_DEBUG
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
os=Linux
|
os=Linux
|
||||||
arch=x86_64
|
arch=x86_64
|
||||||
|
|
||||||
compiler=gcc
|
compiler=gcc
|
||||||
compiler.version=14.0
|
compiler.version=$VERSION
|
||||||
compiler.libcxx=libstdc++11
|
compiler.libcxx=libstdc++11
|
||||||
|
|
||||||
build_type=Debug
|
build_type=Debug
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
|
|
||||||
[build_requires]
|
[buildenv]
|
||||||
|
CC=$CC
|
||||||
[env]
|
CXX=$CXX
|
||||||
CC=gcc-14
|
|
||||||
CXX=g++-14
|
|
||||||
CXXFLAGS=-D_GLIBCXX_DEBUG
|
CXXFLAGS=-D_GLIBCXX_DEBUG
|
||||||
|
|
||||||
|
[conf]
|
||||||
|
tools.build:compiler_executables={"c": "gcc-14","cpp": "g++-14"}
|
||||||
|
tools.build:cxxflags=["-D_GLIBCXX_DEBUG"]
|
@ -3,16 +3,18 @@ os=Linux
|
|||||||
arch=x86_64
|
arch=x86_64
|
||||||
|
|
||||||
compiler=gcc
|
compiler=gcc
|
||||||
compiler.version=14.0
|
compiler.version=14
|
||||||
compiler.libcxx=libstdc++11
|
compiler.libcxx=libstdc++11
|
||||||
|
|
||||||
build_type=Release
|
build_type=Release
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
|
|
||||||
[build_requires]
|
[buildenv]
|
||||||
|
|
||||||
[env]
|
|
||||||
CC=gcc-14
|
CC=gcc-14
|
||||||
CXX=g++-14
|
CXX=g++-14
|
||||||
CXXFLAGS="-flto -ffat-lto-objects"
|
CXXFLAGS=-flto -ffat-lto-objects
|
||||||
|
|
||||||
|
[conf]
|
||||||
|
tools.build:cxxflags=["-flto", "-ffat-lto-objects"]
|
||||||
|
tools.build:compiler_executables={"c": "gcc-14","cpp": "g++-14"}
|
||||||
|
@ -5,6 +5,19 @@ cxx_compiler=g++
|
|||||||
|
|
||||||
[env]
|
[env]
|
||||||
CONAN_CMAKE_FIND_ROOT_PATH=$toolchain
|
CONAN_CMAKE_FIND_ROOT_PATH=$toolchain
|
||||||
|
CONAN_CMAKE_SYSROOT=$toolchain
|
||||||
|
CHOST=$target_host
|
||||||
|
AR=$target_host-ar
|
||||||
|
AS=$target_host-as
|
||||||
|
RANLIB=$target_host-ranlib
|
||||||
|
CC=$target_host-$cc_compiler
|
||||||
|
CXX=$target_host-$cxx_compiler
|
||||||
|
STRIP=$target_host-strip
|
||||||
|
RC=$target_host-windres
|
||||||
|
|
||||||
|
[buildenv]
|
||||||
|
CONAN_CMAKE_FIND_ROOT_PATH=$toolchain
|
||||||
|
CONAN_CMAKE_SYSROOT=$toolchain
|
||||||
CHOST=$target_host
|
CHOST=$target_host
|
||||||
AR=$target_host-ar
|
AR=$target_host-ar
|
||||||
AS=$target_host-as
|
AS=$target_host-as
|
||||||
@ -22,3 +35,7 @@ compiler=gcc
|
|||||||
compiler.version=13.2
|
compiler.version=13.2
|
||||||
compiler.libcxx=libstdc++11
|
compiler.libcxx=libstdc++11
|
||||||
build_type=Release
|
build_type=Release
|
||||||
|
|
||||||
|
[conf]
|
||||||
|
tools.env.virtualenv:auto_use=True
|
||||||
|
tools.build:compiler_executables={"c": "$target_host-$cc_compiler","cpp": "$target_host-$cxx_compiler","rc":"$target_host-windres"}
|
||||||
|
Loading…
Reference in New Issue
Block a user