Skip to content

Instantly share code, notes, and snippets.

View bryant's full-sized avatar

bryant bryant

  • New York; Berlin
View GitHub Profile
@bryant
bryant / fast.cmake
Created January 18, 2018 18:35
Faster LLVM debug builds. Used primarily during dev.
cmake_minimum_required(VERSION 3.4)
execute_process(
COMMAND "grep" "^processor" "/proc/cpuinfo"
COMMAND "wc" "-l"
COMMAND "tr" "-d" "'\n'"
OUTPUT_VARIABLE ncpu
)
set(GIT_ORIGIN "file://$ENV{HOME}/usr/git" CACHE STRING "")