Skip to content

Commit 572d39f

Browse files
author
Andy Schwerin
committed
SERVER-4683 Only use embedded tcmalloc on x86_64 linux by default.
1 parent 4c59df9 commit 572d39f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SConstruct

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ add_option( "clang" , "use clang++ rather than g++ (experimental)" , 0 , True )
203203
# debugging/profiling help
204204

205205
add_option( "allocator" , "allocator to use (tcmalloc or system)" , 1 , True,
206-
default=(sys.platform.startswith('linux') and 'tcmalloc' or 'system') )
206+
default=((sys.platform.startswith('linux') and (os.uname()[-1] == 'x86_64')) and
207+
'tcmalloc' or 'system') )
207208
add_option( "gdbserver" , "build in gdb server support" , 0 , True )
208209
add_option( "heapcheck", "link to heap-checking malloc-lib and look for memory leaks during tests" , 0 , False )
209210
add_option( "gcov" , "compile with flags for gcov" , 0 , True )

0 commit comments

Comments
 (0)