diff options
author | Rebecca Turner <rbt@sent.as> | 2024-03-26 15:40:09 -0700 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-03-28 18:17:28 -0700 |
commit | f9d5079c694fb6cd1029c895c2fa8e226b1ee22e (patch) | |
tree | 4b00b3d3e811ce0d8e16a3048ec98eade1704749 /.envrc | |
parent | 55350bd68decdc1287a34e0b52a1f9fce9ae854b (diff) |
Set `MAKEFLAGS=-j` and `GTEST_BRIEF` in `.envrc`
- Enable parallel builds by default (and allow using environment
variables to override `make` variables)
- Hopefully we can get rid of this once we have Meson
- Set `GTEST_BRIEF=1`
- This only shows failed tests, instead of listing every test on its
own line.
```
$ GTEST_BRIEF=1 make check
[==========] 328 tests from 15 test suites ran. (37 ms total)
[ PASSED ] 328 tests.
```
Change-Id: Id8103a8f24a9681be2be87e1b4df6fd5fdd7e4fd
Diffstat (limited to '.envrc')
-rw-r--r-- | .envrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,9 @@ # shellcheck shell=bash source_env_if_exists .envrc.local +# TODO: `use flake .#native-clangStdenvPackages` on macOS? use flake ".#${LIX_SHELL_VARIANT:-default}" "${LIX_SHELL_EXTRA_ARGS[@]}" +export MAKEFLAGS="$MAKEFLAGS -e" +if [[ -n "$NIX_BUILD_CORES" ]]; then + export MAKEFLAGS="$MAKEFLAGS -j $NIX_BUILD_CORES" +fi +export GTEST_BRIEF=1 |