diff --git a/conan/profile/x86_64-afl-linux-release b/conan/profile/x86_64-afl-linux-release index e8924bd..cf4ce83 100644 --- a/conan/profile/x86_64-afl-linux-release +++ b/conan/profile/x86_64-afl-linux-release @@ -2,18 +2,25 @@ os=Linux arch=x86_64 -compiler=clang -compiler.version=13.2 +compiler=aflplusplus-clang +compiler.version=17 compiler.libcxx=libc++ build_type=Release [options] -[build_requires] +[buildenv] +CC=afl-clang-flast +CXX=afl-clang-fast++ +CFLAGS=-flto -Wno-error +CXXFLAGS=-flto -Wno-error -[env] -CC=afl-clang -CXX=afl-clang++ -CFLAGS="-flto" -CXXFLAGS="-flto" +AFL_USE_UBSAN=1 +AFL_USE_LSAN=1 +AFL_USE_ASAN=1 + +[conf] +tools.build:compiler_executables={"c": "afl-clang-fast", "cpp": "afl-clang-fast++"} +tools.build:cxxflags=["-fsanitize=undefined", "-fsanitize=address", "-fsanitize=leak", "-Wno-error"] +tools.build:cflags=["-fsanitize=undefined", "-fsanitize=address", "-fsanitize=leak", "-Wno-error"] diff --git a/conan/profile/x86_64-aflgcc-linux-release b/conan/profile/x86_64-aflgcc-linux-release new file mode 100644 index 0000000..345ee70 --- /dev/null +++ b/conan/profile/x86_64-aflgcc-linux-release @@ -0,0 +1,26 @@ +[settings] +os=Linux +arch=x86_64 + +compiler=aflplusplus-gcc +compiler.version=14 +compiler.libcxx=libstdc++11 + +build_type=Release + +[options] + +[buildenv] +CC=afl-gcc-flast +CXX=afl-gcc-fast++ +CFLAGS=-flto -Wno-error +CXXFLAGS=-flto -Wno-error + +AFL_USE_UBSAN=1 +AFL_USE_LSAN=1 +AFL_USE_ASAN=1 + +[conf] +tools.build:compiler_executables={"c": "afl-gcc-fast", "cpp": "afl-gcc-fast++"} +tools.build:cxxflags=["-fsanitize=undefined", "-fsanitize=address", "-fsanitize=leak", "-Wno-error"] +tools.build:cflags=["-fsanitize=undefined", "-fsanitize=address", "-fsanitize=leak", "-Wno-error"] diff --git a/conan/profile/x86_64-clang-linux-debug b/conan/profile/x86_64-clang-linux-debug index 6349741..8ece473 100644 --- a/conan/profile/x86_64-clang-linux-debug +++ b/conan/profile/x86_64-clang-linux-debug @@ -10,9 +10,7 @@ build_type=Debug [options] -[build_requires] - -[env] +[buildenv] CC=clang-18 CXX=clang++-18 diff --git a/conan/profile/x86_64-clang-linux-release b/conan/profile/x86_64-clang-linux-release index ba10e4f..ab97737 100644 --- a/conan/profile/x86_64-clang-linux-release +++ b/conan/profile/x86_64-clang-linux-release @@ -11,13 +11,11 @@ build_type=Release [options] -[build_requires] - -[env] +[buildenv] CC=clang-18 CXX=clang++-18 CFLAGS=-flto -CXXFLAGS=-flto +CXXFLAGS=-flto -stdlib=libc++ [conf] tools.build:cxxflags=["-flto", "-stdlib=libc++"] diff --git a/conan/profile/x86_64-clang-linux-sanitizer b/conan/profile/x86_64-clang-linux-sanitizer index f01445d..95aa7ec 100644 --- a/conan/profile/x86_64-clang-linux-sanitizer +++ b/conan/profile/x86_64-clang-linux-sanitizer @@ -10,9 +10,11 @@ build_type=Release [options] -[build_requires] - -[env] +[buildenv] CC=clang-18 CXX=clang++-18 CXXFLAGS="-fsanitize=undefined -fsanitize=address -fsanitize=leak" + +[conf] +tools.build:cxxflags=["-fsanitize=undefined", "-fsanitize=address", "-fsanitize=leak"] +tools.build:compiler_executables={"c": "clang-18","cpp": "clang++-18"} diff --git a/conan/profile/x86_64-gcc-linux-debug b/conan/profile/x86_64-gcc-linux-debug index d9b3866..d4caa46 100644 --- a/conan/profile/x86_64-gcc-linux-debug +++ b/conan/profile/x86_64-gcc-linux-debug @@ -1,14 +1,14 @@ -VERSION=14 -CC=gcc-$VERSION -CXX=g++-$VERSION -CXXFLAGS=-D_GLIBCXX_DEBUG +{% set VERSION = 14 %} +{% set CC = "gcc-$VERSION" %} +{% set CXX = "g++-$VERSION" %} +{% set CXXFLAGS = "-D_GLIBCXX_DEBUG" %} [settings] os=Linux arch=x86_64 compiler=gcc -compiler.version=$VERSION +compiler.version={{ VERSION }} compiler.libcxx=libstdc++11 build_type=Debug @@ -18,7 +18,7 @@ build_type=Debug [buildenv] CC=$CC CXX=$CXX -CXXFLAGS=-D_GLIBCXX_DEBUG +CXXFLAGS={{ CXXFLAGS }} [conf] tools.build:compiler_executables={"c": "gcc-14","cpp": "g++-14"} diff --git a/conan/profile/x86_64-gcc-linux-sanitizer b/conan/profile/x86_64-gcc-linux-sanitizer new file mode 100644 index 0000000..35106f9 --- /dev/null +++ b/conan/profile/x86_64-gcc-linux-sanitizer @@ -0,0 +1,20 @@ +[settings] +os=Linux +arch=x86_64 + +compiler=gcc +compiler.version=14 +compiler.libcxx=libstdc++11 + +build_type=Release + +[options] + +[buildenv] +CC=gcc-14 +CXX=g++-14 +CXXFLAGS=-flto -ffat-lto-objects + +[conf] +tools.build:cxxflags=["-flto", "-ffat-lto-objects", "-fsanitize=undefined", "-fsanitize=address", "-fsanitize=leak"] +tools.build:compiler_executables={"c": "gcc-14","cpp": "g++-14"} diff --git a/conan/profile/x86_64-gcc-mingw-release b/conan/profile/x86_64-gcc-mingw-release index ffc0b93..6e4dfef 100644 --- a/conan/profile/x86_64-gcc-mingw-release +++ b/conan/profile/x86_64-gcc-mingw-release @@ -1,31 +1,19 @@ -toolchain=/usr/x86_64-w64-mingw32 -target_host=x86_64-w64-mingw32 -cc_compiler=gcc -cxx_compiler=g++ - -[env] -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 +{% set toolchain = "/usr/x86_64-w64-mingw32" %} +{% set target_host = "x86_64-w64-mingw32" %} +{% set cc_compiler = "gcc" %} +{% set cxx_compiler = "g++" %} [buildenv] -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 +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 [settings] os=Windows @@ -37,5 +25,4 @@ compiler.libcxx=libstdc++11 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"} +tools.build:compiler_executables={"c": "{{target_host}}-{{cc_compiler}}","cpp": "{{target_host}}-{{cxx_compiler}}","rc":"{{target_host}}-windres"}