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

95 Commits

Author SHA1 Message Date
Andrew Morrow
73a74e4ba3 SERVER-33980 Reduce dependencies for embedded commands 2018-03-29 12:15:39 -04:00
Andrew Morrow
b06203cf7b SERVER-34071 SERVER-34071 Don't assume all executors have targets 2018-03-24 10:32:50 -04:00
Andrew Morrow
82b6d9b431 SERVER-34071 Apply install aliases to other binaries when in hygienic mode 2018-03-23 15:14:36 -04:00
Andrew Morrow
0ebab66992 SERVER-32117 Make embedded builds slimmer 2018-03-15 13:47:14 -04:00
Andrew Morrow
5dfa372b25 SERVER-32117 Minimal hygienic build to support mobile dev 2018-03-06 09:57:57 -05:00
Robert Guo
721846a8b4 SERVER-33203 add benchmark canary tests 2018-03-02 15:56:33 -05:00
Gabriel Russell
b778690717 SERVER-32373 building android targets as TARGET_OS=android 2018-02-15 10:44:29 -05:00
Robert Guo
518d8e0d3c SERVER-33200 add entry point for Benchmark tests 2018-02-14 18:07:21 -05:00
Robert Guo
8d9b68094c SERVER-32785 integrate Google Benchmark with SCons 2018-01-27 11:39:46 -05:00
Mark Benvenuto
86afc6ed82 SERVER-32431 IDL generated code seg faults on s390x 2017-12-27 11:54:14 -05:00
Andrew Morrow
263b5b2cb3 SERVER-30815 Library injections via LIBDEPS_DEPENDENTS should be private
But provide a way to force them public when needed
2017-12-19 10:39:25 -05:00
Mathias Stearn
2680f414b5 SERVER-32130 stop printing arguments in code generation tools 2017-12-08 14:07:07 -05:00
Andrew Morrow
f96e0ef10b SERVER-31800 Disable location information in ABI XML 2017-11-02 16:59:48 -04:00
Andrew Morrow
f1884ccb8b SERVER-30278 SCons icecream integration 2017-10-10 16:11:17 -04:00
Jonathan Reams
8e5e2ece95 SERVER-31222 JSFile source member should not be a reference 2017-09-29 12:06:35 -04:00
tycho garen
9b90669185 SERVER-30815: fix string reprepresentation of libdeps library 2017-09-22 13:31:24 -04:00
Andrew Morrow
7b5a6c25c0 SERVER-30661 Ignore non-truthy libdeps entries 2017-08-17 17:46:04 -04:00
Andrew Morrow
8b2dab9bd3 SERVER-30065 Do libdeps dependency types by section, not tuple 2017-07-08 15:08:24 -04:00
William Deegan
0019d153b9 SERVER-29338 Switch to use Value node instead of Node class in compiledb tool
Also use .write() and .read() methods on same to store entry information

Signed-off-by: Gabriel Russell <gabriel.russell@mongodb.com>
2017-06-23 12:45:55 -04:00
Andrew Morrow
41046adf0e SERVER-27380 Revert "Revert "SERVER-27380 Re-enable the thin archive tool""
This reverts commit b4e14a64d7.
2017-05-25 12:12:50 -04:00
Max Hirschhorn
b4e14a64d7 Revert "SERVER-27380 Re-enable the thin archive tool"
This reverts commit 3e1461b80c.
2017-05-25 08:22:58 -04:00
Andrew Morrow
3e1461b80c SERVER-27380 Re-enable the thin archive tool
This refactors the thin_archive tool to use emitters and scanners
to note that when linking to a thin archive, you must also depend on
the children of that thin archive. Failing to do so is an error,
because a changed .o does not necessarily lead to a different .a,
which would subvert the SCons dependency mechanism.

This also includes a refactoring of the ABILINK tool to use a similar
mechanism, to achieve the opposite effect. For ABILINK, we want to
depend not on the actual .so, but on the hash of its abidw result. We
use emitters, actions, and scanners to produce an associated .abidw
file for each .so we build, and then update the scanner to depend on
the .abidw of our libraries, not the library itself. This allows us to
elide needless relinks.
2017-05-24 23:42:49 -04:00
Andrew Morrow
dab9d2681c SERVER-29220 Default to archive based linking 2017-05-24 23:41:24 -04:00
Andrew Morrow
e40ab076f9 SERVER-29042 Propagate DEVELOPER_DIR when set 2017-05-22 19:19:36 -04:00
Andrew Morrow
d920bb9d9d SERVER-29110 Include IDL compiler output in the generated sources alias 2017-05-17 08:49:07 -04:00
Mark Benvenuto
107b0bdf95 SERVER-29081 Add toBSON to IDL generated classes 2017-05-12 10:34:39 -04:00
Andrew Morrow
fff318ff19 SERVER-29036 The IDL compiler invocation must depend on the IDL compiler sources 2017-05-02 10:30:28 -04:00
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