Skip to content

Commit

Permalink
fix: macos linking hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefinger committed Feb 20, 2024
1 parent a4b5a87 commit a3c6fc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions benches/internal.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
extern crate bevy_rand;
use bevy_rand::BENCH;

fn main() {
// MacOS workaround T___T
let _ = BENCH;

divan::main();
}


4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ mod thread_local_entropy;
pub mod traits;
#[cfg(doc)]
pub mod tutorial;

#[cfg(feature = "internal_benchmarks")]
/// Only for benches
pub const BENCH: bool = true;

0 comments on commit a3c6fc4

Please sign in to comment.