Skip to content
Browse files

drop special case for msvc bucket count

Calling bucket_count() works locally with MSVC.  I wonder if some
other change in the code fixed this.
  • Loading branch information...
1 parent cce1b98 commit 31330231f1955279a6296cf9425a1ea9221919b1 @martine martine committed
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/ninja.cc
View
7 src/ninja.cc
@@ -633,12 +633,7 @@ void DumpMetrics(Globals* globals) {
printf("\n");
int count = (int)globals->state->paths_.size();
- int buckets =
-#ifdef _MSC_VER
- (int)globals->state->paths_.comp.bucket_size;
-#else
- (int)globals->state->paths_.bucket_count();
-#endif
+ int buckets = (int)globals->state->paths_.bucket_count();
printf("path->node hash load %.2f (%d entries / %d buckets)\n",
count / (double) buckets, count, buckets);
}

0 comments on commit 3133023

Please sign in to comment.
Something went wrong with that request. Please try again.