Prevent multiple definition link error
authorJon <jon.forums@gmail.com>
Sat, 16 Jun 2012 15:52:58 +0000 (11:52 -0400)
committerJon <jon.forums@gmail.com>
Sat, 16 Jun 2012 15:52:58 +0000 (11:52 -0400)
Globbed inclusion of `src/hash_collision_bench.cc` cause link errors

bootstrap.py

index 3aac647..9ac46ba 100755 (executable)
@@ -53,6 +53,8 @@ sources = []
 for src in glob.glob('src/*.cc'):
     if src.endswith('test.cc') or src.endswith('.in.cc'):
         continue
+    if src.endswith('bench.cc'):
+        continue
 
     filename = os.path.basename(src)
     if filename == 'browse.cc':  # Depends on generated header.