Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-08-23 | Clear data in target::data() modifiers | Boris Kolpackov | 1 | -2/+4 | |
Currently we may end up resetting the data during the rule ambiguity detection. | |||||
2021-08-18 | Fix bug in external module skipping logic | Boris Kolpackov | 1 | -7/+5 | |
2021-08-13 | Fix amalgamation discovery logic some more | Boris Kolpackov | 1 | -1/+5 | |
2021-08-13 | Cache git status results in version module | Boris Kolpackov | 4 | -53/+64 | |
2021-08-12 | Add ${c,cxx}.deduplicate_export_libs() function | Boris Kolpackov | 4 | -0/+154 | |
This function deduplicates interface library dependencies by removing libraries that are also interface dependencies of the specified libraries. This can result in significantly better build performance for heavily interface-interdependent library families (for example, like Boost). Typical usage: import intf_libs = ... import intf_libs += ... ... import intf_libs += ... intf_libs = $cxx.deduplicate_export_libs($intf_libs) | |||||
2021-08-12 | Avoid duplication in Libs/Libs.private in generated .pc files | Boris Kolpackov | 3 | -23/+69 | |
2021-08-11 | Optimize process_libraries() some more | Boris Kolpackov | 5 | -23/+59 | |
2021-08-10 | Complete process_libraries() duplicate suppression work | Boris Kolpackov | 5 | -69/+114 | |
2021-08-09 | Use parse_variable_name() in parse_import(), parse_config() | Boris Kolpackov | 2 | -15/+22 | |
2021-08-09 | Make variable assignment mandatory in import directive | Boris Kolpackov | 1 | -125/+52 | |
In return we get the ability to specify value attributes. | |||||
2021-08-09 | Merge library hashing and collection into single traversal pass | Boris Kolpackov | 4 | -230/+106 | |
It turns out this is a lot faster on deeply-dependent libraries like Boost while not having any noticeable differences for "sane" projects. | |||||
2021-08-09 | Print pkgconfig_save() command at verbosity 1 since can take long | Boris Kolpackov | 1 | -1/+6 | |
2021-08-05 | Implement traversal pruning in process_libraries() | Boris Kolpackov | 8 | -421/+503 | |
2021-08-05 | Add resolved library cache, use in cc::process_libraries() | Boris Kolpackov | 2 | -9/+74 | |
2021-08-05 | Avoid normalizing likely already normalized directories in search_existing() | Boris Kolpackov | 1 | -1/+8 | |
2021-08-04 | Take into account file-base'ness in ad hoc buildscript recipes | Boris Kolpackov | 10 | -19/+76 | |
2021-08-03 | Fix incorrect assumption in amalgamation discovery logic | Boris Kolpackov | 1 | -8/+10 | |
2021-08-03 | Regenerate options parsing files | Boris Kolpackov | 3 | -14/+90 | |
2021-08-02 | Print list of bootstrapped modules in info meta-operation | Boris Kolpackov | 1 | -1/+10 | |
2021-07-30 | Fix issue in amalgamation discovery | Boris Kolpackov | 1 | -41/+53 | |
2021-07-23 | Remove duplicate friend declaration to make GCC 4.9 happy | Boris Kolpackov | 1 | -2/+0 | |
2021-07-23 | Reserve variable names/components that start with underscore to build2 core | Boris Kolpackov | 3 | -15/+44 | |
2021-07-22 | Adjust Emscripten Clang version to account for unreleased snapshots | Boris Kolpackov | 1 | -1/+17 | |
2021-07-22 | Add note on new /std:c11 and /std:c17 MSVC options | Boris Kolpackov | 1 | -0/+5 | |
2021-07-22 | Update C++ standard mapping for latest versions of compilers | Boris Kolpackov | 1 | -17/+31 | |
2021-07-20 | Map Apple Clang version 12.0.5 to vanilla Clang 10.0.0 | Boris Kolpackov | 1 | -16/+19 | |
2021-07-06 | Clear errno before calling strto*() functions | Boris Kolpackov | 1 | -0/+1 | |
2021-07-01 | Suppress duplicate libraries in pkg-config files | Boris Kolpackov | 3 | -46/+89 | |
2021-07-01 | Handle GCC versions in 9.2-win32 form (GitHub issue #156) | Boris Kolpackov | 1 | -25/+19 | |
2021-06-30 | Complete nm detection | Boris Kolpackov | 2 | -7/+22 | |
2021-06-30 | Move symbol exporting .def file rule to bin.def module, add support for MinGW | Boris Kolpackov | 4 | -155/+288 | |
The bin.def module is automatically loaded by the c and cxx modules for the *-win32-msvc target architecture. This allows automatically exporting all symbols for all Windows targets using the following setup (showing for cxx in this example): lib{foo}: libul{foo}: {hxx cxx}{**} ... lib{foo}: def{foo}: include = ($cxx.target.system == 'win32-msvc') def{foo}: libul{foo} if ($cxx.target.system == 'mingw32') cxx.loptions += -Wl,--export-all-symbols That is, we use the .def file generation for MSVC and the built-in support (--export-all-symbols) for MinGW. But it is also possible to use the .def file generation for MinGW. In this case we need to explicitly load the bin.def module (which should be done after loading c or cxx) and using the following setup: using bin.def # In root.build. lib{foo}: libul{foo}: {hxx cxx}{**} ... lib{foo}: def{foo}: include = ($cxx.target.class == 'windows') def{foo}: libul{foo} | |||||
2021-06-21 | Add support for automatic generation of symbol exporting .def file | Boris Kolpackov | 13 | -19/+926 | |
2021-06-09 | Fix cxx pattern rule test | Boris Kolpackov | 2 | -1/+6 | |
2021-06-08 | Redo low verbosity diagnostic deduction to use scope instead of target | Boris Kolpackov | 9 | -51/+38 | |
2021-06-08 | Get rid of special *{} wildcard target type notation in target type/patterns | Boris Kolpackov | 4 | -30/+23 | |
Explicit target{} should be used instead. Also, in this context, absent target type is now treated as file{} rather than target{}, for consistency with all other cases. | |||||
2021-06-08 | Implement ad hoc regex pattern rule support | Boris Kolpackov | 26 | -381/+1565 | |
An ad hoc pattern rule consists of a pattern that mimics a dependency declaration followed by one or more recipes. For example: exe{~'/(.*)/'}: cxx{~'/\1/'} {{ $cxx.path -o $path($>) $path($<[0]) }} If a pattern matches a dependency declaration of a target, then the recipe is used to perform the corresponding operation on this target. For example, the following dependency declaration matches the above pattern which means the rule's recipe will be used to update this target: exe{hello}: cxx{hello} While the following declarations do not match the above pattern: exe{hello}: c{hello} # Type mismatch. exe{hello}: cxx{howdy} # Name mismatch. On the left hand side of `:` in the pattern we can have a single target or an ad hoc target group. The single target or the first (primary) ad hoc group member must be a regex pattern (~). The rest of the ad hoc group members can be patterns or substitutions (^). For example: <exe{~'/(.*)/'} file{^'/\1.map/'}>: cxx{~'/\1/'} {{ $cxx.path -o $path($>[0]) "-Wl,-Map=$path($>[1])" $path($<[0]) }} On the left hand side of `:` in the pattern we have prerequisites which can be patterns, substitutions, or non-patterns. For example: <exe{~'/(.*)/'} file{^'/\1.map/'}>: cxx{~'/\1/'} hxx{^'/\1/'} hxx{common} {{ $cxx.path -o $path($>[0]) "-Wl,-Map=$path($>[1])" $path($<[0]) }} Substitutions on the left hand side of `:` and substitutions and non-patterns on the right hand side are added to the dependency declaration. For example, given the above rule and dependency declaration, the effective dependency is going to be: <exe{hello} file{hello.map>: cxx{hello} hxx{hello} hxx{common} | |||||
2021-06-08 | Redo fallback reverse operation machinery in ad hoc recipes | Boris Kolpackov | 7 | -64/+78 | |
2021-06-08 | Only pass target to recipe_text() if recipe is not shared | Boris Kolpackov | 9 | -22/+43 | |
2021-06-07 | Strip partition part from module name when forming imported partition name | Boris Kolpackov | 3 | -14/+22 | |
2021-06-03 | Fix crashing on test command output regex match failure | Karen Arutyunov | 1 | -16/+42 | |
2021-05-28 | Fix few Windows/VC compatibility issues | Boris Kolpackov | 2 | -6/+6 | |
2021-05-28 | Add support for regex-based target type/pattern specific variables | Boris Kolpackov | 12 | -222/+583 | |
This is in addition to the already supported path-based target type/pattern specific variables. For example: hxx{*}: x = y # path-based hxx{~/.*/}: x = y # regex-based | |||||
2021-05-28 | Recognize quoting of first character in token | Boris Kolpackov | 7 | -55/+118 | |
Use this to relax the pattern inclusion/exclusion syntax to only require unquoted +/-. | |||||
2021-05-28 | Ban conversion of patterns to values | Boris Kolpackov | 6 | -111/+132 | |
Also improve conversion diagnostic. | |||||
2021-05-28 | Add pattern_mode::ignore and use in appropriate places | Boris Kolpackov | 5 | -25/+35 | |
2021-05-28 | Tie loose ends in target type/pattern-specific matching | Boris Kolpackov | 7 | -42/+119 | |
2021-05-28 | Clean default target type extension logic | Boris Kolpackov | 5 | -22/+83 | |
2021-05-28 | Make notion of name pattern explicit, fix various related loose ends | Boris Kolpackov | 13 | -145/+285 | |
2021-05-25 | Add dbgeng.lib to list of Windows system libraries | Boris Kolpackov | 1 | -0/+1 | |
2021-05-14 | Add synchronization.lib to the list of Windows system libraries | Boris Kolpackov | 1 | -19/+21 | |