0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
Commit Graph

924 Commits

Author SHA1 Message Date
Eliot Horowitz
a8d20647d7 hook up our own IsTestFilename for cpplint 2012-10-15 18:07:07 -04:00
Eliot Horowitz
3a15fac7d8 hookup google cpplint, and make "scons lint" run the checks we pass on now
including a few that i made pass
2012-10-15 18:07:06 -04:00
Andrew Schwerin
26f3e41041 Do not import now-defunct buildscripts.bb in SConstruct. 2012-10-12 16:25:40 -04:00
Randall Hunt
003bf7c7e6 remove bb.py as it's no longer needed in buildbot 2012-10-12 14:09:40 -04:00
Andy Schwerin
60305ad7a4 Simplify the implementation of s3push() in SConstruct, eliminate _rpartition function. 2012-10-04 18:20:08 -04:00
Randall Hunt
563d64e6f8 Fix BUILDBOT-185 by checking env['MONGO_MODULES'] and adding it to the build name 2012-09-18 19:13:08 -04:00
Randall Hunt
bde4065f5a fix module searchpath for 2.2 2012-09-18 17:22:05 -04:00
Tad Marshall
3f8a82f94a SERVER-6848 Replace tabs with 8 spaces in SConstruct 2012-09-02 08:21:46 -04:00
Andy Schwerin
572d39f494 SERVER-4683 Only use embedded tcmalloc on x86_64 linux by default. 2012-08-10 18:15:24 -04:00
Andy Schwerin
eee3fe4ce6 SERVER-4683 Support the imported tcmalloc, ystem tcmalloc or the default system allocator library.
Pass --allocator=tcmalloc (default on Linux) or --allocator=system (default elsewhere)
to control which allocator is used, and --use-system-tcmalloc to use the system-
installed tcmalloc instead of the one in the mongo source tree if you use --allocator=tcmalloc.
2012-08-10 17:19:08 -04:00
Andy Schwerin
517dfc979a SERVER-6532 Add PDB for mongos and mongod to Windows dist archive. 2012-08-07 13:34:18 -04:00
Tad Marshall
c9eb7c87a3 SERVER-6713 use /LARGEADDRESSAWARE linker switch in Windows
Add /LARGEADDRESSAWARE linker switch to Windows builds to
double the user address space in 32-bit builds.
2012-08-05 14:17:49 -04:00
Tad Marshall
0ff6b7aeb3 SERVER-6705 disable FPO for 32-bit Windows
Disable Frame Pointer Omission/Optimization in Windows
release builds.  This is already disabled in debug builds,
and only affects the 32-bit version.
2012-08-04 16:52:10 -04:00
Andy Schwerin
78f93d7a33 Link programs by linking all object files on the command line.
This is done rather than enumerating a list of static libraries to include.

SERVER-5112 and SERVER-6461
2012-07-17 13:10:04 -04:00
Eliot Horowitz
cc8aa499ff SERVER-3893, can't find a system where this breaks right now 2012-07-11 13:24:31 -04:00
Dan Crosta
a6989ade62 allow db modules to declare scripts that are run as a test suite 2012-07-10 11:13:00 -04:00
Dan Crosta
09c5aff0fe discover and configure modules in db/modules/ 2012-07-06 16:08:39 -04:00
Andy Schwerin
83418bb235 SERVER-6158: Link against an explicit instance of the mongoclient library.
This makes sure we're building and testing against the version of the library
that we expect.
2012-07-05 15:07:37 -04:00
Matt Dannenberg
f710e51faa better freebsd support in sconstruct
Signed-off-by: Siddharth Singh <singhsiddharth@gmail.com>
2012-06-13 18:35:29 -04:00
Andy Schwerin
57f64fe508 SERVER-5852: Use frame-pointers in 64-bit FreeBSD builds.
This makes execinfo:backtrace() work, and should have a minimal impact on
performance.
2012-06-08 17:59:21 -04:00
Andy Schwerin
82811e8dc8 SERVER-5702 Fix Build Break
SCons has decidedly mixed feelings about recursively substituting expansion
variables in env.Alias() statements.  Replace "$UNITTEST_ALIAS" with "unittests"
in SConstruct.
2012-06-04 13:27:00 -04:00
Andy Schwerin
82544c7d08 SERVER-5702: Add ability to register unit tests in SCons.
Tests are registered with env.RegisterUnitTest(), or by compiling a C++ unit
test with
    env.CppUnitTest('test_name', [test_source_list], LIBDEPS=[...])

The result is that SCons knows how to build a file "build/unittests.txt", one line per test.
2012-06-04 13:08:27 -04:00
Andy Schwerin
c04922ad14 SERVER-5702: C++ unit test framework that can be compiled separately.
Includes a unit test of the unit test framework written in the unit test
framework, itself.
2012-06-04 13:08:27 -04:00
Eric Milkie
a7be5e92b2 Revert "SERVER-5852 use libunwind routines for backtrace on freebsd"
This reverts commit e6f9efc3c3.

This may be resubmitted as a generic replacement for backtrace()
on all platforms, rather than just FreeBSD.
2012-05-24 13:48:36 -04:00
Eric Milkie
e6f9efc3c3 SERVER-5852 use libunwind routines for backtrace on freebsd 2012-05-24 09:41:37 -04:00
Dan Crosta
3509a34e11 Set linker flags for GNU ld on FreeBSD 9 2012-05-16 09:15:49 -04:00
Dan Crosta
7d43615455 SERVER-5791: SCons shouldn't die if HOME env var is not set 2012-05-09 14:38:01 -04:00
Eric Milkie
86b4fde37e write minidumps for unhandled exceptions on Windows
This will write a file mongo.dmp in the current directory when you crash.
You can open this dump with windbg and examine all thread stacks and locals.
To read and parse the exception details, issue the .ecxr command.
2012-04-24 16:24:35 -04:00
Andy Schwerin
84614c30a3 SERVER-5557: Higher performance timer on Linux.
Also supports systems that implement POSIX's clock_gettime() (i.e., FreeBSD).
2012-04-23 16:11:11 -04:00
Andy Schwerin
13bb9abf36 SCons: No need to check for libstdc++ when building on *nix machines. 2012-04-19 13:45:44 -04:00
Eliot Horowitz
b682f1071a python on windows doesn't support uname 2012-04-19 10:01:54 -04:00
Eliot Horowitz
9185a4bfe5 some cleaning based on andy's code review 2012-04-18 17:59:43 -04:00
Eliot Horowitz
09804cb1b1 make config files and db depend on os/host 2012-04-18 14:43:59 -04:00
Andy Schwerin
890d3b586d Move printStackTrace into new stacktrace.h/cpp; improve detection of execinfo.h. 2012-04-12 14:00:21 -04:00
Dan Crosta
1c58a7b5a1 SERVER-5524 upload client tarball to correct location in S3 2012-04-05 14:50:42 -04:00
Eric Milkie
8dd9661ca7 new scons option --mute, for less build output 2012-04-03 11:17:18 -04:00
Eric Milkie
51e9cc2895 cleanup pch; move some macros to SConstruct 2012-04-03 10:59:12 -04:00
Andy Schwerin
0546c22c22 SERVER-5451: Fix "scons clientBuild" on buildbots with Boost installed in non-standard locations. 2012-03-30 14:05:09 -04:00
Andy Schwerin
9d92f4014f SCons: Build spidermonkey using a SConscript, instead of the third-party tools crud.
Get rid of the third-party tools crud.
2012-03-28 20:23:09 -04:00
Andy Schwerin
fba1ca674b SCons: Move snappy library building into its own SConscript.
Move away from the third-party-specific module importer, as with boost and pcre.
2012-03-28 20:23:09 -04:00
Andy Schwerin
4de8795575 SCons, use CCFLAGS, not CPPFLAGS, when referring to compiler flags. 2012-03-28 20:23:09 -04:00
Andy Schwerin
7655aa54ea SCons: Clarify determination of when to use a system version of a library.
Introduces a predicate in our build system "use_system_version_of_library"
to answer the question of whether or not to use the system-supplied version
of a specified library (i.e., boost).
2012-03-28 20:23:09 -04:00
Andy Schwerin
0d40ba0044 Remove myCheckLib from SConstruct, other simplification/cleanup. 2012-03-28 11:42:59 -04:00
Andy Schwerin
a3e51b6721 SCons: /DNDEBUG stops boost assertions from aborting the program, which is not our desired behavior.
On Linux, we never define NDEBUG; make Windows behave the same.
2012-03-28 11:42:08 -04:00
Andy Schwerin
69db073a3e SERVER-4881: Stop defining BOOST_ENABLE_ASSERT_HANDLER.
It's correct for assertion failures in boost code to terminate the process,
which is their default behavior.
2012-03-26 21:39:10 -04:00
Andy Schwerin
a1f3bbaf6a Build "test" as part of "all". 2012-03-23 14:07:15 -04:00
Andy Schwerin
d67ce1cd31 SCons refactoring, cleans up building and testing the C++ client.
This patch does the following:

1.) Remove pcre.h dependencies in the C++ client, and remove some other
unnecessary dependencies.
2.) Clean up how we build the client from the client source tarball, so it's
more like how we build it from the git repo / full source tarball.
3.) Fix up our "scons" so you only have to write "scons ." to build all of our
binaries, the binary archive (zip or tgz) and client source archive (zip or
tgz).
4.) Fix up SCons aliases "core", "tools", and "all".
5.) Let user specify the name of the client tarball via a SCons command line
switch.

Resolves SERVER-4231, SERVER-5255.
2012-03-23 10:35:31 -04:00
Andy Schwerin
d500568fe1 Remove debugging print statement from SConstruct. 2012-03-19 17:09:33 -04:00
Andy Schwerin
0e0adf8855 Enable/disable DB-level locking at compile time.
Use the "--mongod-concurrency-level=db" flag to scons to enable db-level locking.  Defaults
to disabled, can be disabled explicitly with "--mongod-concurrency-level=global".
2012-03-19 15:10:35 -04:00
Eliot Horowitz
6fc718c18a enable BOOST_ENABLE_ASSERT_HANDLER in scons and fix boost assert functions
haven't removed from pch.h
2012-03-19 10:51:00 -04:00