Skip to content

Instantly share code, notes, and snippets.

@DrMcCoy
Last active April 9, 2019 21:24
Show Gist options
  • Select an option

  • Save DrMcCoy/7ef8bc4fa83d49dbc84871e3f5ee03aa to your computer and use it in GitHub Desktop.

Select an option

Save DrMcCoy/7ef8bc4fa83d49dbc84871e3f5ee03aa to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euxo pipefail
GCC_VERSION="8.3.0"
CCACHE="ccache"
export CC="$CCACHE gcc-$GCC_VERSION"
export CXX="$CCACHE g++-$GCC_VERSION"
export CFLAGS="-O2 -ggdb -fdiagnostics-color -fno-omit-frame-pointer -fsanitize=address,undefined"
export CXXFLAGS="-O2 -ggdb -fdiagnostics-color -fno-omit-frame-pointer -fsanitize=address,undefined"
git clean -fxd
./autogen.sh
./configure
make -j4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment