1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Merge pull request #460 from github/work-your-core

Pass -j to script/repl's GHCi flags.
This commit is contained in:
Rob Rix 2020-01-31 16:03:41 -05:00 committed by GitHub
commit cb40eab8d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,12 +21,17 @@ function add_autogen_includes {
echo "-I$1"
}
cores=$(sysctl -n machdep.cpu.core_count || echo 4)
function flags {
# disable optimizations for faster loading
echo "-O0"
# dont load .ghci files (for ghcide)
echo "-ignore-dot-ghci"
# use as many jobs as there are physical cores
echo "-j$cores"
# where to put build products
echo "-outputdir $build_products_dir"
echo "-odir $build_products_dir"