Skip to content

Instantly share code, notes, and snippets.

@markblundeberg
Last active February 5, 2020 15:43
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 markblundeberg/e285a9db7cc9558fb1c81a994eafcbe8 to your computer and use it in GitHub Desktop.
Save markblundeberg/e285a9db7cc9558fb1c81a994eafcbe8 to your computer and use it in GitHub Desktop.
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