SConstruct (9590:699f4ee61445) | SConstruct (9591:b6a47b43f4df) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 911 unchanged lines hidden (view full) --- 920 921# Check for librt. 922have_posix_clock = \ 923 conf.CheckLibWithHeader(None, 'time.h', 'C', 924 'clock_nanosleep(0,0,NULL,NULL);') or \ 925 conf.CheckLibWithHeader('rt', 'time.h', 'C', 926 'clock_nanosleep(0,0,NULL,NULL);') 927 | 1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 911 unchanged lines hidden (view full) --- 920 921# Check for librt. 922have_posix_clock = \ 923 conf.CheckLibWithHeader(None, 'time.h', 'C', 924 'clock_nanosleep(0,0,NULL,NULL);') or \ 925 conf.CheckLibWithHeader('rt', 'time.h', 'C', 926 'clock_nanosleep(0,0,NULL,NULL);') 927 |
928if conf.CheckLib('tcmalloc_minimal'): | 928if conf.CheckLib('tcmalloc'): |
929 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS']) | 929 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS']) |
930elif conf.CheckLib('tcmalloc_minimal'): 931 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS']) |
|
930else: 931 print termcap.Yellow + termcap.Bold + \ 932 "You can get a 12% performance improvement by installing tcmalloc "\ 933 "(libgoogle-perftools-dev package on Ubuntu or RedHat)." + \ 934 termcap.Normal 935 936if not have_posix_clock: 937 print "Can't find library for POSIX clocks." --- 298 unchanged lines hidden --- | 932else: 933 print termcap.Yellow + termcap.Bold + \ 934 "You can get a 12% performance improvement by installing tcmalloc "\ 935 "(libgoogle-perftools-dev package on Ubuntu or RedHat)." + \ 936 termcap.Normal 937 938if not have_posix_clock: 939 print "Can't find library for POSIX clocks." --- 298 unchanged lines hidden --- |