aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
AgeCommit message (Collapse)AuthorFilesLines
2017-05-01Add hxx extension for headersKaren Arutyunov1-11/+11
2017-04-28Fix bug in target state/override logicBoris Kolpackov1-1/+1
2017-04-28Implement support for pre-processing version headers (or other files)Boris Kolpackov1-2/+5
Also implement the build system version check.
2017-04-27Pass target to prerequisite searchBoris Kolpackov1-7/+8
2017-04-01Fix bug in task state/count logicBoris Kolpackov1-7/+9
2017-04-01Redo handling of unhandled exceptions in async executionBoris Kolpackov1-18/+4
Here is the problem: noexcept looses the call stack. That is, unlike an unhandled exception, if noexcept is tripped, then you won't see the place where it was thrown. In this new implementation we now have noexcept only on the task thunk. And the task is called via a thunk only in case of async execution. This means that if we are executing serially (-j 1), then this will be an unhandled exception, not noexcept. Hopefully will be a bit easier to debug.
2017-03-24Fix diagnostics interleaving charactersKaren Arutyunov1-2/+4
2017-03-17Catch and dump unhandled exceptions in async task functionsBoris Kolpackov1-3/+17
The problem with relying on noexcept for this is that there is no stack.
2017-03-06Tweak target locking logicBoris Kolpackov1-13/+14
2017-03-04Call import_existing() from search_existing() now that we have itBoris Kolpackov1-7/+6
2017-03-04Fix match-only recipe override corner caseBoris Kolpackov1-53/+82
2017-03-03Refrain from working own queue when trying to lock targetBoris Kolpackov1-1/+8
This can easily lead to deadlock.
2017-03-03Fix cli distribution via groupBoris Kolpackov1-11/+13
2017-03-02Fix clean logicBoris Kolpackov1-10/+14
2017-03-02Implement parallel matchBoris Kolpackov1-275/+584
2017-02-14Modify library mate-information protocol not to use lib{} groupBoris Kolpackov1-5/+5
2017-02-13Implement parallel error propagation, keep_going modeBoris Kolpackov1-73/+135
Keep going is the default but there is now the -s|--serial-stop that makes the driver run serially and stop at first error. Also fix some lockups, other minor improvements/features.
2017-02-13Get rid of count_postponedBoris Kolpackov1-57/+49
Terget execution is postponed with regards to the current thread only thus it doesn't seem right to make postponed a target state.
2017-02-13Do some naming cleanupsBoris Kolpackov1-3/+3
2017-02-13Implement parallel operation executionBoris Kolpackov1-25/+165
2017-02-13Pass const target& to recipesBoris Kolpackov1-24/+30
2017-02-13Introduce target::task_countBoris Kolpackov1-36/+122
2017-02-13Implement target_set locking, including extension updateBoris Kolpackov1-2/+8
2017-02-13Pass const scope& where modification should not happenBoris Kolpackov1-8/+13
2017-02-13Add notion of phase, enforceBoris Kolpackov1-0/+34
2017-02-13Add model mutex, make var_pool const by defaultBoris Kolpackov1-14/+16
2017-01-20Remove prerequisite caching in scopeBoris Kolpackov1-1/+1
We don't share them often and those that are shared (e.g., cxx{} in obja/objs{}) are lightweight (SOO).
2017-01-19Get rid of extension_poolBoris Kolpackov1-4/+4
2017-01-19Get rid of project_name_poolBoris Kolpackov1-1/+1
With small string optimizations this is most likely a hindrance rather that an optimization.
2017-01-18Ignore prerequisite mtimes that are not linker inputsBoris Kolpackov1-55/+16
This makes sure, for example, that we don't unnecessarily re-link an executable when its testscript prerequisite is changes.
2017-01-12Inject fsdir{} even for project rootsBoris Kolpackov1-4/+6
This takes care of subprojects, such as tests/.
2017-01-05Update copyright yearBoris Kolpackov1-1/+1
2016-12-17Don't try to test out-of-project prerequisitesBoris Kolpackov1-11/+5
2016-12-05Adapt to semantics change of path::normalize()Karen Arutyunov1-1/+1
2016-11-30Add support for typed/untyped concatenated expansionBoris Kolpackov1-1/+1
2016-11-22Use diagnostics facility from libbutlBoris Kolpackov1-1/+1
2016-11-04Don't print "while updating ..." in quiet modeBoris Kolpackov1-1/+3
2016-11-04Cleanup match_result messBoris Kolpackov1-4/+4
2016-11-04Add support for skipping rule in delegate_match()Boris Kolpackov1-3/+6
2016-08-31Compile first source file, not lastBoris Kolpackov1-1/+1
Some source files may include other files of the same type which can get injected at the end.
2016-08-29Implement initial support for library versioningBoris Kolpackov1-39/+63
Currently we only support platform-independent versions that get appended to the library name. The magic incantation is this: lib{foo}: bin.lib.version = @-1.2 This will produce libfoo-1.2.so, libfoo-1.2.dll, etc. In the future we will support things like this: lib{foo}: bin.lib.version = linux@1.2.3 freebsd@1.2 windows@1.2
2016-08-12Implement support for C compilationBoris Kolpackov1-0/+48
We now have two new modules: cc (c-common) and c.
2016-08-09Fix bug in inner/outer operation handlingBoris Kolpackov1-1/+3
2016-08-02Optimize out path::normalize() callsBoris Kolpackov1-1/+2
2016-07-19Add support for building DLLs with VCBoris Kolpackov1-6/+6
2016-07-08Add dependency on fsdir{} in alias rulesBoris Kolpackov1-14/+16
This makes sure that a directory with only dir{} target gets cleaned up.
2016-07-08Move filesystem-related functions from context to new filesystem filesBoris Kolpackov1-1/+2
2016-07-08Implement limited rpath emulation for WindowsBoris Kolpackov1-14/+53
2016-06-26Add notion of ad hoc group, use to handle DLL/import libraryBoris Kolpackov1-2/+21
2016-06-17Initial take on DLL support for MinGW toolchainBoris Kolpackov1-34/+55