Skip to content

Instantly share code, notes, and snippets.

@artem-smotrakov
Created June 11, 2018 18:51
Show Gist options
  • Save artem-smotrakov/54bd586cde7d6a99b69f781835873e23 to your computer and use it in GitHub Desktop.
Save artem-smotrakov/54bd586cde7d6a99b69f781835873e23 to your computer and use it in GitHub Desktop.
Clone and build picotls with gcov
#!/bin/bash
git clone https://github.com/h2o/picotls
cd picotls
export CFLAGS="-fprofile-arcs -ftest-coverage -g -O0 -fsanitize=address -fno-omit-frame-pointer"
export LDFLAGS="-fsanitize=address"
cmake \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
.
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment