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

888 Commits

Author SHA1 Message Date
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
Andy Schwerin
1afb642f15 SCons: Check SCons version >= 1.1.0 before compiling (used to be 0.98.4). 2012-01-20 09:24:27 -08:00
Andy Schwerin
785651d2be Fix "scons dist" / "scons s3dist".
Also, fix stripping and checking for GLIBC_2.4 dependencies on Linux.
2012-01-20 00:32:00 -08:00
Andy Schwerin
959ca16b31 Make SConstruct more consistent with old behavior for finding pcap on Windows, for buildslaves. 2012-01-19 16:50:57 -08:00
Andy Schwerin
51a735c40f SCons: Fix 64-bit on OS X 10.5 build by specifying target architecture when building RelocatableObjects. 2012-01-19 10:26:48 -08:00
Andy Schwerin
dcb8445b55 SCons: Fix Solaris 64-bit support. 2012-01-18 14:17:12 -08:00
Andy Schwerin
2561f20421 SConstruct: Prioritize includes from mongo source tree and third_party over system includes, unless explicitly overridden. 2012-01-18 11:01:55 -08:00
Andy Schwerin
84289e0b88 Fix for including right PCRE headers and linking commands into mongod/s. 2012-01-17 23:48:19 -08:00
Andy Schwerin
6cf66ed2a0 Change client library linking on OS X to support 10.5. 2012-01-17 19:23:17 -08:00
Andy Schwerin
30668e1c79 SCons updates to support variant directories.
This patch is a reorganization of our build files, which brings them slightly
closer in line with standard SCons organization.

In particular, the SConstruct file sets up the various "build environment"
objects, by examining the local system and command line parameters.  Then, it
delegates to some SConscript files, which describe build rules, like how to
compile "mongod" from source.

Typically, you would create several SConscript files for a project this large,
after breaking the project into logical sub projects, such as "platform
abstraction", "data manager", "query optimizer", etc.  That will be future work.
For now, we only separate out the special rules for executing smoke tests into
SConscript.smoke.  Pretty much all other build rules are in src/mongo/SConscript.

"tools" are placed in site_scons/site_tools.

This patch also includes better support for building and tracking dependencies
among static libraries ("libdeps" and "MergeLibrary"), and some incumbent, minor
restructuring.

This patch introduces a "warning" message from SCons about framework.o having
two rules that generate it.  It is harmless, for now, and will be removed in
future work.

Future work also includes eliminating use of the SCons "Glob" utility, and
restructuring the source code into sensible components.
2012-01-17 14:58:51 -08:00
Tad Marshall
e75d664e24 hand-merge pull request # 144 from ukd1
Just a fix for a minor typo
2012-01-16 15:42:07 -05:00
Nathaniel McCallum
9dc1b751c2 remove stray shortName typo 2012-01-15 17:14:59 -05:00
U-tellus\cwestin
27e8af5b4f SERVER-3832 2012-01-06 15:54:50 -08:00
Eric Milkie
01587e687d run clone tests on windows 2012-01-04 16:32:36 -05:00
Eric Milkie
37b331b756 adjust target names for Windows 2012-01-04 14:22:18 -05:00
Eric Milkie
b002202f5c enable certain test targets to work on windows 2012-01-04 10:46:39 -05:00
dwight
c4ec255720 compile v8 windows 2012-01-03 13:53:04 -05:00