|
123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- export MAKEFLAGS := "-j8"
- export RUSTFLAGS := "-C link-arg=-fuse-ld=lld -C target-cpu=native"
- #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"
-
- cargo +args='':
- cargo {{args}}
-
- check +args='':
- @just cargo check {{args}}
-
- debug-build binary_name='binary-serialization' +args='':
- @just cargo build --bin {{binary_name}} {{args}}
-
- release-build binary_name='polar' +args='':
- @just cargo build --bin {{binary_name}} --release {{args}}
-
- example name +args='':
- @just cargo build --example {{name}} {{args}}
-
- test +args='':
- @just cargo test {{args}}
-
- doc +args='':
- @just cargo doc --open {{args}}
-
- doc-priv +args='':
- @just cargo doc --open --document-private-items {{args}}
-
- show-build-env:
- @ env | rg RUST
- @ env | rg '^MAKEFLAGS' | sort
-
- bench +args='':
- @just cargo bench {{args}}
-
- update +args='':
- @just cargo update {{args}}
-
- rebuild:
- just cargo clean
- just update
- just test
-
- flush-disk-cache:
- sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
|