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

904 Commits

Author SHA1 Message Date
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
Eric Milkie
0578ab5c5f improved Windows compilation flags 2012-03-07 15:44:04 -05:00
Andy Schwerin
322c3cc620 SERVER-5172: Fix builds that set include and library paths. 2012-03-07 15:05:48 -05:00
Andy Schwerin
1daae4e935 SERVER-5172: Respond to forgotten CR comments. 2012-03-07 10:46:54 -05:00
Andy Schwerin
a8c3284a03 SERVER-5172: Compile and link mongod and friends against the boost in third_party.
To use system boost, pass --use-system-boost or --use-system-all to scons.
2012-03-07 10:37:06 -05:00
Tad Marshall
7ee0d0d8d1 Merge pull request #171 from djcsdy/windows-32-bit-build-fix
SERVER-5038 Always build 32-bit when building with --32 on Windows

Set force32, msarch and TARGET_ARCH correctly when --32 is specified.
Verified that this was broken before and is fixed by this patch.
2012-03-03 15:20:02 -08:00
Eliot Horowitz
c72786cdd1 add gcov option to scons to prep for SERVER-1600 2012-03-02 15:54:11 -05:00
Dan Crosta
40365f6cb4 SERVER-4995: check for and link with librt on Solaris 2012-03-01 15:15:40 -05:00
Eric Milkie
058a36a347 SERVER-3827 SConstruct changes for new pcre 2012-02-28 14:06:35 -05:00
Eliot Horowitz
2ebabdfbf4 Revert "BUILDBOT-58: use s3tool to do s3-related work (and remove old, unused s3 scripts)"
This reverts commit fc7cac2239.
2012-02-18 01:55:34 -05:00
Dan Crosta
fc7cac2239 BUILDBOT-58: use s3tool to do s3-related work (and remove old, unused s3 scripts) 2012-02-16 21:51:26 -05:00
Dan Crosta
b1d52e5246 add --smokeauth pass-through to smoke.py --auth 2012-02-10 22:08:13 -05:00
Mathias Stearn
74c1ffb05d Add -Woverloaded-virtual to CXXFLAGS and fix build SERVER-4802 2012-02-09 17:57:49 -05:00
Andy Schwerin
0b0a55509e Make SConstruct robust to TERM not being set. 2012-02-08 11:24:26 -05:00
Dan Crosta
7ce95709fe set up files lists and installs for client tarball SERVER-4875 2012-02-08 00:28:53 -05:00
Daniel Cassidy
01d17fa1c5 Always use the 32-bit Microsoft toolchain when building with --32 on Windows. 2012-01-31 15:07:42 +00:00
Eliot Horowitz
38399f723c Revert "horrible hack for sun32"
This reverts commit ef9684b7e0.
2012-01-30 15:43:19 -05:00
Eliot Horowitz
ef9684b7e0 horrible hack for sun32 2012-01-30 12:50:30 -05:00
Dan Crosta
ff87e84c3e SERVER-4591: python-2.4 compatible version of rpartition 2012-01-23 09:38:39 -08:00
Eliot Horowitz
ff0157a562 cleaner variant dir directories 2012-01-21 19:50:45 -05:00
Andy Schwerin
e885029b8f Fix scons dist_clean 2012-01-20 23:03:12 -08:00