Skip to content

Commit ba72f3d

Browse files
committed
Only regenerate magic bitboards when necessary
1 parent cb4b6d3 commit ba72f3d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
v0.0.3
22
- Added optional `tracing` instrumentation to Game - use the `instrument_game` feature to enable.
3+
- Additional 3x increase in build speed, by only rebuilding magic bitboards when necessary.
34

45
v0.0.2
56
- Added `Board::en_passant_target` to match standard meaning - for now, `Board::en_passant` should still be preferred in the hot path.

src/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ mod square;
1818
use crate::gen_tables::generate_all_tables;
1919
// Generate everything.
2020
fn main() {
21+
println!("cargo:rerun-if-changed=src/gen_tables/");
22+
2123
generate_all_tables();
2224
}

0 commit comments

Comments
 (0)