Skip to content

Instantly share code, notes, and snippets.

@skhaz
Created November 10, 2023 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skhaz/56e6c2e822bed239bce1e87d07f6f215 to your computer and use it in GitHub Desktop.
Save skhaz/56e6c2e822bed239bce1e87d07f6f215 to your computer and use it in GitHub Desktop.
Conan sanitizers
# ~/.conan2/profiles/default
[settings]
arch=armv8
build_type=Debug
compiler=clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=17
os=Macos
[conf]
tools.build:jobs=8
tools.build:cflags=["-fsanitize=address", "-fsanitize=undefined"]
tools.build:cxxflags=["-fsanitize=address", "-fsanitize=undefined"]
tools.build:exelinkflags=["-fsanitize=address", "-fsanitize=undefined"]
tools.build:sharedlinkflags=["-fsanitize=address", "-fsanitize=undefined"]
# ~/.conan2/global.conf
tools.info.package_id:confs=["tools.build:cflags", "tools.build:cxxflags", "tools.build:exelinkflags", "tools.build:sharedlinkflags"]
@skhaz
Copy link
Author

skhaz commented Nov 10, 2023

conan install . --output-folder=build --profile=debug --build="*" && cd build && cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment