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

68 Commits

Author SHA1 Message Date
Andrew Morrow
955faacc40 SERVER-27320 Enable fine grained application of whole archive extraction 2017-05-01 21:59:29 -04:00
Andrew Morrow
ab0fc1ebb4 SERVER-28888 Ensure scanner stability across rebuilds
Also, a quick fix to eliminate a needless sort, since Node.sources
is expected to be stable across rebuilds, unlike Node.sources_set
2017-04-21 13:33:29 -04:00
Mark Benvenuto
37073e44e9 SERVER-28515 Add import support to IDL 2017-04-20 09:48:31 -04:00
Andrew Morrow
7237623f2d SERVER-28583 Split up mongo_scons_utils.py into site_scons/mongo 2017-04-06 14:31:32 -04:00
Andrew Morrow
865b400e4a SERVER-28583 Move some functions down into site_scons modules 2017-04-06 14:31:32 -04:00
Andrew Morrow
190dcaab71 SERVER-27505 Link libraries in topological order 2017-04-04 18:28:56 -04:00
Mark Benvenuto
2981615366 SERVER-28306 IDL Code Generator 2017-03-29 11:37:08 -04:00
Andrew Morrow
21628d6b23 SERVER-28390 Mark targets as Precious during incremental links 2017-03-21 14:01:15 -04:00
Andrew Morrow
39f71f9f17 SERVER-20540 Add an emitter for .dwo generated by -gsplit-dwarf 2017-03-21 14:00:46 -04:00
Mathias Stearn
7ff63b0de1 SERVER-28325 Clean up dependencies around unit and integration test list files
* The integration_tests alias now depends on the individual tests directly
  rather than the whole directory.
* Both list files now just depend on the list of tests rather than the tests
  themselves.
* The string printed during execution is now evaluated at the right time so
  we don't need to print it separately.
* Fix installing tests to the build/unitests/ directory on windows.
2017-03-20 18:38:42 -04:00
Mathias Stearn
e4c62ca157 SERVER-28324 Generate cpp files containing js strings outside of the scons process
This matches how the other python-generated source files work.
2017-03-20 18:38:42 -04:00
Mathias Stearn
1927810547 SERVER-28099 Use key rather than cmp in libdeps.py sorted_by_str
From the python docs: "In general, the key and reverse conversion processes
are much faster than specifying an equivalent cmp function. This is because
cmp is called multiple times for each list element while key and reverse touch
each element only once."
2017-02-28 11:58:12 -05:00
Gabriel Russell
29ee4e817e SERVER-14605 Make SYSLIBDEPS dependency order stable across SCons invocations 2017-02-01 16:00:23 -05:00
Kasper Laudrup
de7e3c74f1 SERVER-27628 Use the overrided environment when generating compile_command.json
When the compilation_db scons emitter saved compilation database
entried it always used the "global" environment which might not match
the compilation command line actually used to build the target.

That meant that using eg.:

env.Library("foo", ["foo.cpp"], CXXFLAGS=["-Dfoo"])

Would not write the extra "-Dfoo" flag actually used to build the foo
library to the compile_commands.json file.

Instead save the environment used to generate the target and use that
when writing the compile_command.json entry.
2017-01-13 13:40:48 -05:00
Andrew Morrow
ef364240d7 SERVER-27577 Only apply thin_archive handling to StaticLibrary
By default on SCons, the Library and StaticLibrary builders are
the same object, so adding the target_factory to StaticLibrary is
sufficient. If they aren't the same, then even more important
to only modify SaticLibrary, since Library may have been re-purposed
to mean something else. In our case it does mean something different
when using --link-model=dynamic, so this oversight inadvertently changed
the signature calculations for dynamic libaries.

Also includes a drive-by fix to add LoadableModule to the builders
affected by the abilink.py tool, since a LoadableModule is also
a shared library on the platforms where abidw is in play.
2017-01-06 21:59:41 -05:00
Matt Cotter
47653843a0 SERVER-26642 use char arrays instead of str literals for js code 2016-11-17 11:44:59 -05:00
Andrew Morrow
53cd93fb9b SERVER-26473 Implement the git based decider 2016-10-21 13:50:22 -04:00
Andrew Morrow
bdb8bfe3b5 SERVER-26276 Enable thin static linking on binutils platforms 2016-10-10 16:38:53 -04:00
Juggls
6db3c739f6 SERVER-25809 Add Executable Dependency Tracking for Dagger Project 2016-08-25 17:45:31 -04:00
Juggls
3a25e6f73c SERVER-24838: add scons tool for capturing dependency graph 2016-07-29 13:43:09 -04:00
Andrew Morrow
84139e7e34 SERVER-24988 Re-license useful SCons utilities as Apache 2016-07-12 11:23:55 -04:00
Austin Steady
737d557b17 SERVER-24555: make compilation_db compatible with scons 2.4
Signed-off-by: Sam Kleinman <samk@10gen.com>
2016-06-17 17:51:41 -04:00
Andrew Morrow
7d78e7c9ae SERVER-23103 Remove the unit test crutch 2016-06-16 17:54:40 -04:00
Jonathan Reams
e729e9caf7 SERVER-16852 Print buildInfo in version output/allow override of buildInfo 2015-09-04 15:27:03 -04:00
Andrew Morrow
01fff117c0 SERVER-9666 Tag cyclic or incomplete libraries, add more missing edges 2015-08-24 09:36:31 -04:00
Andrew Morrow
9a988c6c0e SERVER-9666 If abidw fails, fall back to contents 2015-08-24 08:27:38 -04:00
Adam Midvidy
a56ea15c45 SERVER-19447 implement SCons support for CPP integration tests
- add evergreen tasks as well
2015-08-11 13:50:17 -04:00
Andrew Morrow
6c88ec9513 SERVER-9564 Honor user provided value for ABIDW 2015-07-29 09:50:12 -04:00
Andrew Morrow
5891f4bc97 SERVER-13966 Differentiate library and program reverse dependencies 2015-07-28 18:14:22 -04:00
Andrew Morrow
e9fc3c3ae2 SERVER-9564 When libabigail utils are present, minimize relinking 2015-07-24 23:06:56 -04:00
Andrew Morrow
92f1bacdb1 SERVER-9564 Expose linking model choice as a build option 2015-07-23 19:07:11 -04:00
Jonathan Reams
9a743c6fb3 SERVER-19229 Only open tar archives in append mode if actually appending 2015-07-01 11:43:21 -04:00
Andrew Morrow
483706ef48 SERVER-17789 Do not use option values to configure the variant directory 2015-06-12 13:28:17 -04:00
Jonathan Reams
2ce0a91ec6 SERVER-17782 SERVER-17329 Improve versioning and add distsrc to SCons 2015-05-21 14:15:43 -04:00
Max Hirschhorn
424314f65e SERVER-1424 Rewrite smoke.py.
Split out the passthrough tests into separate suites. The MongoDB
deployment is started up by resmoke.py so that we can record the
success/failure of each individual test in MCI.

Added support for parallel execution of tests by dispatching to
multiple MongoDB deployments.

Added support for grouping different kinds of tests (e.g. C++ unit
tests, dbtests, and jstests) so that they can be run together. This
allows for customizability in specifying what tests to execute when
changes are made to a particular part of the code.
2015-05-08 14:49:42 -04:00
Andrew Morrow
eea0ef850e SERVER-17919 Add support for emitting a compilation database 2015-04-13 15:47:26 -04:00
Jonathan Reams
ed49b537b9 SERVER-9560 Remove pre-compiled header support from scons 2015-02-11 13:18:47 -05:00
Greg Studer
e88273ac94 SERVER-1424 (re)smoke tag parsing and new test library, v0
Includes:
- Smoke.py options for filtering by jstest tags
- New resmoke.py test utility in v0 alpha
- Lots of example resmoke configurations
- SCons integration for unittests
- Sample tagged jstests
2014-09-18 14:37:45 -04:00
Greg Studer
4677734e7a Revert "SERVER-1424 (re)smoke tag parsing and new test library, v0"
This reverts commit fac5571f67.
2014-09-15 19:42:10 -04:00
Greg Studer
fac5571f67 SERVER-1424 (re)smoke tag parsing and new test library, v0
Includes:
- Smoke.py options for filtering by jstest tags
- New resmoke.py test utility in v0 alpha
- Lots of example resmoke configurations
- SCons integration for unittests
- Sample tagged jstests
2014-09-15 19:05:15 -04:00
Andrew Morrow
13a652f018 SERVER-15190 Report detected libdeps cycles 2014-09-09 15:33:04 -04:00
Andrew Morrow
ef4f60e395 SERVER-14343 leaner include paths 2014-07-12 16:50:51 -04:00
Mark Benvenuto
4a97f4cff3 SERVER-13759: vcxproj generator improvements
1. VCXProj now builds all .cpp files itself
2. Moved obj files to Build/ to keep repo clean
3. Split jstoh so that it can be called by vcxproj file
4. Make_Vcxproj - fixed to handle cl temp files, fixes now that vcxproj builds
generated files, and fix _TARGET_ search and replace

Note: Depends on python installation
2014-06-12 16:03:38 -04:00
Andrew Morrow
a475a70e90 SERVER-13527 Eliminate unused module tests facility 2014-04-16 09:12:25 -04:00
Andy Schwerin
d1fc0022af Have SCons print less when generating buildinfo.cpp and unittests.txt. 2014-01-02 11:44:54 -05:00
Eric Milkie
8214ffd81c SERVER-9771 allow libdeps to process emitter intermediate output with targets that may be strings 2013-09-12 16:05:43 -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
Andy Schwerin
7711aed31d SERVER-9670 Use LIBDEPS to declare dependents in addition to prerequisites.
To achieve this, the "direct prerequisites" for a File node are stored in the
node's attributes object, instead of in the build environment for the node.
This allows the emitter for nodes to amend _other nodes_ prerequisites.  After that,
this change is trivial.  Introduce a LIBDEPS_DEPENDENTS environment variable that sets
the named dependents of a node, while the existing LIBDEPS variable may be considered
the direct prerequisites.
2013-07-09 16:11:48 -04:00
Eric Milkie
db76ce6eef Fix SYSLIBDEPS to not add empty libraries to link list, to match LIBDEPS' behavior 2013-06-06 15:05:29 -04:00
Tad Marshall
2d2a2ce570 SERVER-7892 Do not strip indentation in JavaScript source code
V8 displays source code "as-is", so if we remove indentation then it
won't be there when users display "built-in" shell helper source code.
2013-03-18 13:14:06 -04:00