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

1054 Commits

Author SHA1 Message Date
Adam Midvidy
daab6fae49 SERVER-14165 port isSelf fastpath to windows
Closes #736

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-08-08 16:25:52 -04:00
Eric Milkie
81676bfa36 SERVER-9482 add flag to enable activation of FIPS mode (off by default) 2014-07-29 16:45:26 -04:00
melissaosullivan
bc780e2e72 SERVER-11107 added ssl certificate expiration monitoring
Closes #712
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
2014-07-17 14:02:19 -04:00
Andrew Morrow
804423e1b6 SERVER-9561 Expose SCons MSVC config options via cmd line options 2014-07-16 11:07:21 -04:00
Mathias Stearn
df27bbcf24 SERVER-11290 Don't actually build static libraries
We don't currently use the static libraries, they are just nodes in our
dependency graph. Since they are unused, building them wastes time and disk
IO.

We still need to generate the files to appease scons. They are filled with a
UUID on the assumption that if scons thinks that a library needs to be rebuilt
then anything that depends on the library should also be rebuilt.
2014-07-14 19:22:19 -04:00
Andrew Morrow
3982b2f3ac SERVER-14343 Build fast and loose by default 2014-07-14 18:54:27 -04:00
Andrew Morrow
a6a55dfeb3 SERVER-9570 SERVER-9572 Default install prefix to subdirectory of selectable build dir
In addition, move the .scons directory to a subdirectory of the build
directory. This makes all build artifacts not installed to '#' live under the
build directory.
2014-07-14 18:54:26 -04:00
Andrew Morrow
ef4f60e395 SERVER-14343 leaner include paths 2014-07-12 16:50:51 -04:00
James Page
44b0e35918 SERVER-14388 Fixup detection of yaml-cpp system library
The use of --use-system-yaml was incorrectly searching for yaml-cpp
under the 'yaml' name.

Search for yaml-cpp instead.

Fixes: SERVER-14388

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-06-30 10:34:16 -04:00
Eliot Horowitz
341ae84ab2 SERVER-14352: clean up static init so no longer need DEFINE 2014-06-26 15:47:01 -04:00
Eliot Horowitz
1c9a75094b SERVER-14352: prototype rocksdb storage engine 2014-06-25 09:52:35 -04:00
Jonathan Reams
f4766f8b62 SERVER-14059 Allow overriding of dist architecture name in scons 2014-06-19 13:39:22 -04:00
Mark Benvenuto
a2d69514a4 SERVER-8994: Boost 1.55 MacOS X fixes
1. Move swap from std to mongo namespace. Fixed C++ build on 10.9 with
XCode 5.1
2. Add check to see if no-null-conversion needs to be enabled for C++
build on 10.8 with Xcode 4.2
2014-06-12 16:51:14 -04:00
Mark Benvenuto
dae863af3f SERVER-8994: New internal-boost option to choose internal boost version 2014-06-06 17:24:23 -04:00
Benety Goh
ffaa85ae89 SERVER-13792 added runtime and build-time checks for POSIX monotonic clocks. de-inlined Timer::now() implementations 2014-06-05 23:03:50 -04:00
Andrew Morrow
f0e050a580 SERVER-14105 Improve support for building with various sanitizers 2014-06-04 16:49:25 -04:00
Mark Benvenuto
8fb62e7324 SERVER-13964: Shrink Windows Binaries with VS2013 Update 2
Enable new compiler flags that shrink the binaries if we are using VS2013 Update 2 or later
2014-05-20 17:21:14 -04:00
Andrew Morrow
3c202ac893 SERVER-6018 SERVER-13913 Use std::atomic to implement AtomicWord in C++11 mode 2014-05-17 15:46:28 -04:00
Andrew Morrow
1134c0d1fc SERVER-6018 Use gcc __sync primitives if they are available and useable 2014-05-17 15:46:27 -04:00
Andy Schwerin
7aa378e738 SERVER-13969 Eliminate long-dead message_server_asio.cpp. 2014-05-16 16:02:08 -04:00
Andy Schwerin
c9310a0207 SERVER-13944 Switch back to -fPIC instead of -fPIE to fix RHEL6.2 build.
On RHEL6 builders, the -fPIE compiler flag causes the mongo shell to make
a pure virtual function call inside the V8 engine at startup.  Since
the swtitch to -fPIE was unnecessary for SERVER-13944, switching back to
-fPIC pending investigation.
2014-05-16 13:14:57 -04:00
Kaloian Manassiev
9bac8024b6 SERVER-13961 Get rid of the DB_LEVEL_LOCKING_ENABLED macro
We will no loger build with global locking on.
2014-05-16 10:54:03 -04:00
Andy Schwerin
0417d9b663 SERVER-13944 New stack dump format, on non-Windows systems.
Implementation of the "somap" object, which can be used to identify the correct
binary from which to extract debug symbols and supports ASLR, is only implemented
on Linux.  Other POSIX systems still need work to implement that object.
2014-05-15 16:01:29 -04:00
Mark Benvenuto
773e718f9b SERVER-13892: Compiler Fixes 2014-05-09 18:23:49 -04:00
Robie Basak
19cceceb78 SERVER-12064 SERVER-12283 Use gcc atomic builtins if available
Switch to using gcc atomic builtins for atomic operations if using a new
enough gcc and clang and support is available. Otherwise, fall back to
the old behaviour of existing non-portable inline assembly to continue
to support builds on older versions of gcc.

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-05-09 15:42:05 -04:00
Randolph Tan
8fe31447b9 SERVER-13795 rename test binary to dbtest 2014-05-02 21:29:54 -04:00
Ernie Hershey
27c128d303 SERVER-13724 Add --disable-warnings-as-errors scons option
This change was prompted by attempts to build 2.6.0 in SLES 10 with
its system gcc version 4.1.2. It builds fine other than a sole
warning - src/third_party/boost/boost/thread/detail/thread.hpp:316:
warning: type attributes are honored only at type definition. It
should also help in cases where compilers are too new.
2014-05-01 17:27:36 -04:00
Andy Schwerin
2c9c7efd94 SERVER-13686 Do not change the variant directory based on the JS engine being compiled.
Having the variant directory contain the JS engine name can actually increase
the time required to switch JS engines, because the only code that must compile
when you switch is the new JS engine and a small handful of support files.
2014-05-01 16:35:46 -04:00
Benety Goh
7e3f93197f SERVER-13686 V8 3.25 scripting engine. Disabled by default. Enable using SCons flag js-engine=v8-3.25 2014-05-01 09:35:46 -04:00
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