Skip to content

Instantly share code, notes, and snippets.

@geneotech
Created May 8, 2018 19:56
Show Gist options
  • Save geneotech/d0e9524e23816fa25d1e5e544599dc6a to your computer and use it in GitHub Desktop.
Save geneotech/d0e9524e23816fa25d1e5e544599dc6a to your computer and use it in GitHub Desktop.
mkdir .deps ; cd .deps
cmake -DCMAKE_BUILD_TYPE=Release ../third-party -G Ninja
ninja
export CFLAGS='-O3 -flto -fuse-ld=lld'
export CXXFLAGS='-O3 -flto -fwhole-program-vtables -fuse-ld=lld'
export LDFLAGS='-flto -fwhole-program-vtables -fuse-ld=lld'
../
mkdir build ; cd build
cmake -DCMAKE_BUILD_TYPE=Release .. -G Ninja
ninja
sudo ninja install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment