You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1KB

  1. export MAKEFLAGS := "-j8"
  2. export RUSTFLAGS := "-C link-arg=-fuse-ld=lld -C target-cpu=native"
  3. #export RUSTFLAGS := "-C linker-plugin-lto -C linker=/home/jstrong/src/clang-12/bin/clang-12 -C link-arg=-fuse-ld=lld -C target-cpu=native"
  4. cargo +args='':
  5. cargo {{args}}
  6. check +args='':
  7. @just cargo check {{args}}
  8. debug-build binary_name='binary-serialization' +args='':
  9. @just cargo build --bin {{binary_name}} {{args}}
  10. release-build binary_name='polar' +args='':
  11. @just cargo build --bin {{binary_name}} --release {{args}}
  12. example name +args='':
  13. @just cargo build --example {{name}} {{args}}
  14. test +args='':
  15. @just cargo test {{args}}
  16. doc +args='':
  17. @just cargo doc --open {{args}}
  18. doc-priv +args='':
  19. @just cargo doc --open --document-private-items {{args}}
  20. show-build-env:
  21. @ env | rg RUST
  22. @ env | rg '^MAKEFLAGS' | sort
  23. bench +args='':
  24. @just cargo bench {{args}}
  25. update +args='':
  26. @just cargo update {{args}}
  27. rebuild:
  28. just cargo clean
  29. just update
  30. just test
  31. flush-disk-cache:
  32. sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'