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

1025 Commits

Author SHA1 Message Date
Benety Goh
a3f67f410b SERVER-13762 added configure check for POSIX system - replaces existing checks for unistd.h and clock_gettime 2014-04-28 18:44:55 -04:00
Andrew Morrow
03f1bce19b SERVER-13453 Strip C++ client driver artifacts from the server tree 2014-04-19 15:02:10 -04:00
Colin Stolley
978567c61a SERVER-1120 OpenBSD Port
This patch should enable building on OpenBSD 5.4.

- added a processinfo implementation based heavily off of the same
  code for freebsd.
- fixed a few scons problems in mongo and v8
- added __openbsd__ directives to s2 build
- Don't disturb bswap() functions on freebsd.
- Fixed indentation sloppiness. No code changes.

Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
2014-04-18 19:28:50 -04:00
Andrew Morrow
6cef43b784 SERVER-13527 Enable C++11 automatically when reasonable to do so 2014-04-16 09:12:25 -04:00
Andrew Morrow
a475a70e90 SERVER-13527 Eliminate unused module tests facility 2014-04-16 09:12:25 -04:00
Andrew Morrow
2c01237bc0 SERVER-13544 Enable gperftools for C++11 builds
The following change was backported:
https://code.google.com/p/gperftools/source/detail?r=18fbc316eebea9db2d7ec41e161c0a3fbb09fa42

Another change we wanted was:
https://code.google.com/p/gperftools/source/detail?r=6287bbbbad8730712cfd1ee28ecc0648cbaa9f94#

However, since that patch must hit every PR/SC instance and the code has evolved from that point
we instead just ran the following two scripts over the gperftools source tree:

find . -type f | xargs egrep -l '"PR\w+"' | xargs perl -pi -e 's|"PR(\w+)"|" PR\1 "|g'
find . -type f | xargs egrep -l '"SC\w+"' | xargs perl -pi -e 's|"SC(\w+)"|" SC\1 "|g'

and then manually fixing up the one reference to GPRIuPTHREAD, which achieved the same result.

Finally, remove the logic preventing mixture of C++11 and gperftools from the build system.
2014-04-14 10:46:16 -04:00
Andrew Morrow
225d637878 SERVER-13559 Remove legacy debugging flags and honor zero arg invocations of dbg and opt 2014-04-11 16:26:24 -04:00
Andrew Morrow
911bbc14a8 SERVER-12189 Enable libstdc++ debugging features for debug builds when possible 2014-04-11 15:52:35 -04:00
Andrew Morrow
2670656283 SERVER-12255 Use tcmalloc on 32-bit linux and darwin as well 2014-04-07 19:09:32 -04:00
Andrew Morrow
025a54c830 SERVER-12255 Be explicit about target micro-architecture for 32-bit x86 builds 2014-04-07 19:09:31 -04:00
Andy Schwerin
881b2ee9ff SERVER-5553 Eliminate malloc from printStacktrace(std::ostream&).
This also opens the exciting possibility of displaying the base address
of the file containing the address, which would let us dump stacks when
ASLR is in use.  However, this implementation preserves the format used
in the Linux backtrace_symbols() implementation.
2014-04-03 13:16:44 -04:00
Andrew Morrow
9a45a1f363 SERVER-12572 Informatively fail attempts to build C++ client driver targets
The MongoDB C++ client driver now resides in a separate repo and is maintained
independently of the server. The targets in this repo that used to build or test
the driver will now print an error message explaining the change and referring
users to the relevant documentation.
2014-03-04 10:57:42 -05:00
Kaloian Manassiev
78b54a037a Do not include cpppath/extrapath/libpath when generating output location
Otherwise, if libraries are used which have deeper paths, the ouput path
becomes really long and builds fail due to excessively long command line.
2014-02-25 13:49:42 -05:00
Nikolaus Demmel
efc9a4a324 SERVER-12682 Add warning on OS X if libc++ is selected and osx-version-min is < 10.7.
Signed-off-by: Andrew Morrow <acm@10gen.com>
2014-02-18 18:44:14 -05:00
Mark Benvenuto
40b314894c SERVER-12304 Query concurrency -- 2.6 regression 2014-02-18 17:19:39 -05:00
Ernie Hershey
ea4ba610f0 SERVER-11106 Detect non-enterprise MSI configurations 2014-02-12 18:25:33 -05:00
Ernie Hershey
95fd79cb23 SERVER-10324 Allow modules to add files to different archive subdirectories
This CR is 1 of 2 covering the open source server repo component
of https://jira.mongodb.org/browse/SERVER-10324. It supplants
http://codereview.10gen.com/4892644241047552/
2014-01-28 22:38:50 -05:00
Andrew Morrow
fc0280414c SERVER-12456 Also pass stack protector option to the link step 2014-01-25 11:43:49 -05:00
Eric Milkie
a6c4e86b0a SERVER-12403 permit use-system-boost on Windows to work with autolib linking 2014-01-23 08:47:52 -05:00
Eric Milkie
eff37e9c0e SERVER-12421 - detect sasl library properly for C++ driver on Windows 2014-01-23 08:47:50 -05:00
Mark Benvenuto
7964cab85a SERVER-12166: Promote struct/class mismatch warning to error with GCC/Clang 2013-12-31 15:16:54 -05:00
Mark Benvenuto
5d54ce99eb SERVER-10142: Eliminate Compiler Warnings on Windows Builders
BF-60:compile broken on windows
2013-12-18 12:57:34 -05:00
Andrew Morrow
c9808ef308 SERVER-11689 Always link libgcc statically if linking libstdc++ statically 2013-11-27 13:17:08 -05:00
Shaun Verch
c9168762e4 SERVER-11575 Added support for YAML Config File 2013-11-13 16:46:49 -05:00
Mathias Stearn
e4a1f917ad SERVER-6950 Add a TCMalloc ServerStatusSection 2013-11-12 19:08:06 -05:00
Andrew Morrow
f7443bad6c SERVER-9855 Add support for specifying Mavericks as the OS X minimum version 2013-11-05 14:02:46 -05:00
Andrew Morrow
6fc17c30a8 SERVER-9855 Remove obsolete darwin configuration options
- We want to use whatever compiler SCons tooling picks now that we support clang.
- /usr/64 isn't a thing on modern Darwin (at least since 10.6, which is our minimum)
- It probably never made sense to look in /usr/64/include for anything
- If you want to use MacPorts, use --extrapath=/opt/local, similar for Fink
2013-11-05 14:02:46 -05:00
Andrew Morrow
dd6d28a356 SERVER-11333 Add build flag to suppress use of __declspec(thread) 2013-10-24 12:55:22 -04:00
Andrew Morrow
5682288d90 SERVER-11333 Use configure time checks and posix feature tests to select TSP implementation 2013-10-24 12:55:22 -04:00
Andrew Morrow
978af98546 SERVER-11264 Include OS X minimum version flag on link lines 2013-10-18 14:46:47 -04:00
Eric Milkie
7ada7a8e11 SERVER-10830 msi builder as an scons target 2013-10-09 13:59:08 -04:00
Mathias Stearn
62d754f991 SERVER-11084 Error when mixing --gcov and --cache 2013-10-08 17:35:05 -04:00
Andrew Morrow
ac2bd10833 SERVER-11053 Support use of CacheDir rather than Brobdingnagian variant directory names 2013-10-07 08:47:51 -04:00
Mike Grundy
d1a4564bba SERVER-10808 add __gcov_flush() call on exit
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
2013-10-03 18:51:18 -04:00
matt dannenberg
97c82b16b2 SERVER-10816 enable StackChecker when not optimized and in debug mode rather than when simply in debug mode 2013-09-25 10:40:14 -04:00
Andrew Morrow
681bc4c9be SERVER-10401 Disable new clang-3.4 warning 2013-09-18 17:39:40 -04:00
Andrew Morrow
8ba48088a3 SERVER-10726 Orthogonalize debugging and optimization options
Introduce new flags --dbg and --opt which permit independent control over optimization and
debugging. The old --d, --dd, and --release flags were not independent, and had surprising
interactions, particularly on Windows.

The old flags are still supported in a legacy mode for --d and --dd builds, cannot be mixed
with the new.

For builds specifying none of --dbg, --opt, --d, or --dd, there should be no behavior change,
except on Windows. On that platform, a no-flags-specified build will now default to
optimization enabled, whereas before it did not.
2013-09-16 17:36:35 -04:00
matt dannenberg
3145d2440b SERVER-8684 added a CCPDEFINE to cause newer system versions of boost to use the thread version we do 2013-09-16 11:17:44 -04:00
Andrew Morrow
73ce2fd28b SERVER-9766 Don't fail the build on missing system libraries unless they are in demand 2013-09-11 16:46:52 -04:00
Andrew Morrow
f0deda49e3 SERVER-9766 Remove support for separate client driver package 2013-09-11 16:46:52 -04:00
Eric Milkie
b91195fe8f SERVER-9770 introduce new scons flag to optionally build with /MD 2013-09-06 15:22:24 -04:00
Andrew Morrow
23b676781c Retain frame pointers when building with clang sanitizers 2013-08-15 10:13:09 -04:00
Andrew Morrow
3ffea6597a SERVER-10401 Suppress tautology warning in v8 triggered when using clang-3.4 2013-08-01 16:24:59 -04:00
Andy Schwerin
1158aa623d SERVER-9670 Eliminate MONGO_LIBDEPS_* global environment variables from SCons. 2013-07-09 17:49:14 -04:00
Andrew Morrow
2eceeb6202 SERVER-9881 Use presence of a certain type_trait to detect libstdc++ 4.6.0 or better 2013-07-02 13:35:15 -04:00
Tad Marshall
1c53e2b9e9 SERVER-9775 Remove use-system-sm option 2013-06-24 19:54:43 -04:00
Tad Marshall
eb7ba8adc1 SERVER-9775 Remove SpiderMonkey 2013-06-24 17:26:06 -04:00
Andrew Morrow
57a4875807 SERVER-9761 Enforce immediate binding of all symbols at process startup 2013-06-24 17:10:21 -04:00
Tad Marshall
54f25e6292 SERVER-7080 Link to backtrace, backtrace_symbols and backtrace_symbols_fd at runtime
Do not make direct calls to backtrace, backtrace_symbols or backtrace_symbols_fd,
which are present in Solaris 11 but not in Solaris 10.  Instead, see if they are
available in a loaded library (which will be libc.so.1) at runtime and either
call them or call an emulation.
2013-06-20 11:53:23 -04:00
Andrew Morrow
58f82cf66d SERVER-9890 Force the use of gnulink on solaris, since we always link through the compiler 2013-06-13 17:02:51 -04:00