# gold linker runs out of memory on 32-bit
eval "$(
  declare -f build | \
    sed '
      s/cmake -B build/cmake -B build -DUSE_LD_GOLD=OFF /
    '
  declare -f build | \
    sed '
      3 i LDFLAGS+=" -Wl,--no-keep-memory"
      3 i CFLAGS+=" -g1"
      3 i CXXFLAGS+=" -g1"
    '
)"