Skip to content

Instantly share code, notes, and snippets.

@markblundeberg

markblundeberg/devabc.md

Last active Feb 5, 2020
Embed
What would you like to do?
ABC dev notes

Basic building: first mkdir build-ninja in repo root, then run cmake -GNinja .. within the new directory, then ninja check-all.

Build with clang:

CC=clang CXX=clang++ cmake -GNinja ..

Build with debug:

CC=clang CXX=clang++ cmake -GNinja .. -DCMAKE_BUILD_TYPE=Debug

Build with ASAN (slow!) too:

CC=clang CXX=clang++ cmake -GNinja .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_SANITIZERS=address

Turn off clang-tidy:

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