Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-11-04 | Redo group_prerequisites to use snapshots of prerequisites (GH issue #408) | Boris Kolpackov | 1 | -10/+8 | |
It turns out both target and group prerequisites can be replaced during dependency synthesis in more obscure cases. | |||||
2024-10-29 | Tweak some more fix for data race in ad hoc member state when group is postponed | Boris Kolpackov | 1 | -3/+2 | |
2024-10-28 | Fix data race in ad hoc member state when group is postponed | Boris Kolpackov | 1 | -3/+7 | |
2024-08-06 | Rename certain target_set::insert() versions to insert_implied() for clarity | Boris Kolpackov | 1 | -36/+41 | |
Also clarify the target_decl documentation. | |||||
2024-07-31 | Add lookup limit to {scope,target}::lookup_original() | Boris Kolpackov | 1 | -12/+28 | |
2024-07-29 | Add scope::lookup_original_info() that provides additional info about lookup | Boris Kolpackov | 1 | -4/+6 | |
2024-02-22 | Detect non-cc::link_rule libraries not marked with cc.type=cc | Boris Kolpackov | 1 | -2/+25 | |
Fixes GH issue #368. | |||||
2024-02-22 | Deal with libs{} being member of group in windows_rpath_timestamp() | Boris Kolpackov | 1 | -6/+6 | |
Fixes GH issue #366. | |||||
2024-02-12 | Add ability to specify recipes in separate files | Boris Kolpackov | 1 | -0/+16 | |
This can now be achieved with the new `recipe` directive: recipe <language> <file> Note that similar to the use of if-else and switch directives with recipes, this directive requires explicit % recipe header. For example, instead of: file{foo.output}: {{ echo 'hello' >$path($>) }} We can now write: file{foo.output}: % recipe buildscript hello.buildscript With hello.buildscript containing: echo 'hello' >$path($>) Similarly, for C++ recipes (this time for a pattern), instead of: [rule_name=hello] file{~'/(.+)\.output/'}: % update clean {{ c++ 1 -- -- ... }} We can now write: [rule_name=hello] file{~'/(.+)\.output/'}: % update clean recipe c++ hello.cxx With hello.cxx containing: // c++ 1 -- -- ... Relative <file> paths are resolved using the buildfile directory that contains the `recipe` directive as a base. Note also that this mechanism can be used in exported buildfiles with recipe files placed into build/export/ together with buildfiles. | |||||
2024-02-12 | Extend class target, prerequisite_target interfaces | Boris Kolpackov | 1 | -2/+34 | |
2023-12-03 | Reimplement search_existing() functions via target_type::search | Boris Kolpackov | 1 | -5/+12 | |
This allows us to automatically get the target type-specific behavior with regards to the out_only semantics (added in the previous commit) instead of passing it explicitly from each call site. | |||||
2023-11-21 | Add target::append_locked() variant | Boris Kolpackov | 1 | -2/+8 | |
2023-11-16 | Fix target::group_state() for unmatched ad hoc group members | Boris Kolpackov | 1 | -1/+1 | |
2023-11-07 | Account for match options re-locking when checking if target is matched | Boris Kolpackov | 1 | -0/+2 | |
2023-11-03 | Fix data race in match options logic | Boris Kolpackov | 1 | -9/+13 | |
2023-11-01 | Add support for adjusting match options of post hoc prerequisites | Boris Kolpackov | 1 | -1/+11 | |
2023-11-01 | Add notion of match options | Boris Kolpackov | 1 | -6/+101 | |
Now, when matching a rule, the caller may request a subset of the full functionality of performing an operation on a target. This is achieved with match options. | |||||
2023-10-06 | Handle 0 mask in update_during_match_prerequisites() | Boris Kolpackov | 1 | -1/+2 | |
2023-08-02 | Diagnose declarations of targets/prerequisites with abstract target types | Boris Kolpackov | 1 | -1/+1 | |
2023-07-20 | Consider unmatched prerequisites in updated_during_match() check | Boris Kolpackov | 1 | -2/+9 | |
2023-06-15 | Fix incorrect memory order in target::matched() call | Boris Kolpackov | 1 | -1/+1 | |
2023-06-02 | Fix data race in library metadata protocol logic | Boris Kolpackov | 1 | -1/+5 | |
2023-06-01 | Diagnose null include, operation-specific variable values | Boris Kolpackov | 1 | -3/+1 | |
While assigning null directly is unlikely, it's fairly easy via a variable expansion. Real-world example: ./: exe{tensor}: include = $config.Eigen.unsupported | |||||
2023-06-01 | Add inner_recipe for expressiveness | Boris Kolpackov | 1 | -1/+1 | |
2023-06-01 | Resolve (but disable for now) target_count issue in resolve_members() | Boris Kolpackov | 1 | -14/+19 | |
2023-05-29 | Avoid group linkup deadlocks for dynamic and pattern-static members | Boris Kolpackov | 1 | -2/+5 | |
2023-05-29 | Explicit group: dynamic members | Boris Kolpackov | 1 | -4/+5 | |
2023-05-29 | Explicit group: static members | Boris Kolpackov | 1 | -4/+32 | |
2023-05-29 | Explicit group: syntax parsing | Boris Kolpackov | 1 | -2/+33 | |
2023-05-21 | Add support for dynamic target extraction in addition to prerequisites | Boris Kolpackov | 1 | -0/+4 | |
This functionality is enabled with the depdb-dyndep --dyn-target option. Only the make format is supported, where the listed targets are added as ad hoc group members (unless already specified as static members). This functionality is not available in the --byproduct mode. | |||||
2023-03-02 | Replace deprecated std::aligned_storage with alignas | Boris Kolpackov | 1 | -4/+4 | |
Based on patch by Matthew Krupcale. | |||||
2022-11-30 | Reserve targets, variables to avoid rehashing | Boris Kolpackov | 1 | -0/+4 | |
2022-11-18 | Complete low verbosity diagnostics rework | Boris Kolpackov | 1 | -4/+4 | |
2022-10-19 | Add support for post hoc prerequisites | Boris Kolpackov | 1 | -2/+11 | |
Unlike normal and ad hoc prerequisites, a post hoc prerequisite is built after the target, not before. It may also form a dependency cycle together with normal/ad hoc prerequisites. In other words, all this form of dependency guarantees is that a post hoc prerequisite will be built if its dependent target is built. See the NEWS file for details and an example. | |||||
2022-10-10 | Preparatory work for public/private variable distinction | Boris Kolpackov | 1 | -15/+15 | |
We still always use the public var_pool from context but where required, all access now goes through scope::var_pool(). | |||||
2022-09-21 | Fix regression in dynamic dependency extraction, byproduct mode | Boris Kolpackov | 1 | -0/+3 | |
2022-09-12 | Do not treat primary ad hoc group member as group for variable lookup | Boris Kolpackov | 1 | -0/+14 | |
Note that we started with this semantics but it was changed in a commit on 2021-09-16 for reasons not entirely unclear but most likely due to target- specific variables specified for the group not being set on all the members. Which we have now addressed (see the previous commit). Note also that this new (old) semantics is not without its own drawbacks. Specifically, there is a bit of waste when the target-specific variable is really only meant for the recipe and thus setting it on all the members is unnecessary. For example: <{hxx ixx cxx}{options}>: cli{options} { options = ... } {{ # Use options. }} But this feels like a quality of implementation rather than conceptual issue. For example, we could likely one day address it by synthesizing a separate group target for ad hoc groups. | |||||
2022-06-29 | Make sure we generate common pkg-config file for only liba{}/libs{} | Boris Kolpackov | 1 | -4/+10 | |
2022-06-24 | Allow ad hoc rules not to list targets that are updated during match | Boris Kolpackov | 1 | -6/+27 | |
For example, this allows a Qt moc rule not to list generated headers from libQtCore since they are pre-generated by the library. | |||||
2022-06-22 | Add missing match_data() destructor | Boris Kolpackov | 1 | -0/+5 | |
2022-04-20 | Replace match_extra::buffer with more general data storage facility | Boris Kolpackov | 1 | -2/+66 | |
2022-04-19 | Use target recipe for auxiliary data storage during match-apply | Boris Kolpackov | 1 | -41/+92 | |
In particular, we now have separate auxiliary data storage for inner and outer operations. | |||||
2022-04-19 | Switch to using std::function for target::data_pad | Boris Kolpackov | 1 | -34/+80 | |
2022-04-19 | Skip find() inside target_set::insert*() if target is unlikely to be there | Boris Kolpackov | 1 | -7/+19 | |
2022-04-19 | Cache "recipe is group_action" information, clear recipes after execution | Boris Kolpackov | 1 | -0/+1 | |
2022-04-18 | Avoid locking target set if in load phase | Boris Kolpackov | 1 | -5/+15 | |
2022-04-15 | Get rid of target::dynamic_type() virtual function | Boris Kolpackov | 1 | -35/+85 | |
Instead of overriding this function, derived targets must now set the dynamic_type variable to their static_type in their constructor body. | |||||
2022-04-13 | Cache target base scope lookups | Boris Kolpackov | 1 | -5/+31 | |
2022-04-07 | Rename {match,execute}() to *_sync(), add *_complete() | Boris Kolpackov | 1 | -2/+2 | |
In particular, the match() rename makes sure it doesn't clash with rule::match() which, after removal of the hint argument in simple_rule, has exactly the same signature, thus making it error-prone to calling recursively. | |||||
2022-04-06 | Add support for rule hints | Boris Kolpackov | 1 | -9/+60 | |
A rule hint is a target attribute, for example: [rule_hint=cxx] exe{hello}: c{hello} Rule hints can be used to resolve ambiguity when multiple rules match the same target as well as to override an unambiguous match. |