build2 build system
This package contains the build2 build system.
build2 is an open source, cross-platform toolchain for building and packaging
C++ code. Its aim is a modern build system and dependency manager for the C++
language that provide a consistent, out of the box interface across multiple
platforms and compilers. For more information see:
https://build2.org/
See the NEWS file for the user-visible changes from the previous release.
See the LICENSE file for the distribution conditions.
See the INSTALL file... More
Depends (2)
Requires (1)
Builds
toolchain |
public-0.15.0 |
config |
linux_debian_10-clang_12.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-27 11:32:49 UTC (16:55 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-clang_12.0 / x86_64-linux-gnu |
timestamp |
2023-01-27 11:32:08 UTC (17:37 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-clang_10.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-27 11:30:30 UTC (19:14 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-clang_11.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-27 11:28:24 UTC (21:21 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-clang_11.0 / x86_64-linux-gnu |
timestamp |
2023-01-27 11:27:43 UTC (22:01 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-clang_10.0 / x86_64-linux-gnu |
timestamp |
2023-01-27 11:21:40 UTC (28:04 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-gcc_12.1-ndebug_O3 / x86_64-linux-gnu |
timestamp |
2023-01-27 11:17:14 UTC (32:30 minutes ago) |
result |
warning (update) | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-clang_9.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-27 11:15:27 UTC (34:17 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_9-clang_6.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-27 11:11:31 UTC (38:13 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_9-clang_6.0 / x86_64-linux-gnu |
timestamp |
2023-01-27 11:10:34 UTC (39:10 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_9-clang_7.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-27 11:09:40 UTC (40:04 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_9-clang_8.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-27 11:09:05 UTC (40:39 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_9-clang_8.0 / x86_64-linux-gnu |
timestamp |
2023-01-27 11:08:28 UTC (41:16 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_9-clang_7.0 / x86_64-linux-gnu |
timestamp |
2023-01-27 11:08:28 UTC (41:17 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-msvc_14.3 / x86_64-microsoft-win32-msvc14.0 |
timestamp |
2023-01-27 11:04:10 UTC (45:34 minutes ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
freebsd_11-clang_10.0 / x86_64-freebsd11.4 |
timestamp |
2023-01-27 10:47:40 UTC (01:02:05 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_ubuntu_16.04-clang_3.7_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-27 10:44:25 UTC (01:05:20 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_9-gcc_8.4 / x86_64-linux-gnu |
timestamp |
2023-01-27 10:36:36 UTC (01:13:08 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-gcc_10.2 / x86_64-linux-gnu |
timestamp |
2023-01-27 10:35:13 UTC (01:14:31 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_8-gcc_4.9 / x86_64-linux-gnu |
timestamp |
2023-01-27 10:27:18 UTC (01:22:26 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-gcc_9.3 / x86_64-linux-gnu |
timestamp |
2023-01-27 10:26:02 UTC (01:23:42 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_9-gcc_7.4 / x86_64-linux-gnu |
timestamp |
2023-01-27 10:25:18 UTC (01:24:27 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-msvc_15.9 / x86_64-microsoft-win32-msvc14.1 |
timestamp |
2023-01-27 10:12:26 UTC (01:37:19 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
macos_12-gcc_12.1_homebrew-O3 / x86_64-apple-darwin21.6.0 |
timestamp |
2023-01-26 19:22:13 UTC (16:27:31 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
macos_12-gcc_12.1_homebrew-static_O3 / x86_64-apple-darwin21.6.0 |
timestamp |
2023-01-26 19:13:49 UTC (16:35:55 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
macos_12-gcc_12.1_homebrew / x86_64-apple-darwin21.6.0 |
timestamp |
2023-01-26 18:53:30 UTC (16:56:14 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
macos_12-clang_13.1-O3 / x86_64-apple-darwin21.6.0 |
timestamp |
2023-01-26 17:20:34 UTC (18:29:10 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
macos_12-clang_13.1-static_O3 / x86_64-apple-darwin21.6.0 |
timestamp |
2023-01-26 17:00:43 UTC (18:49:01 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
macos_12-clang_13.1 / x86_64-apple-darwin21.6.0 |
timestamp |
2023-01-26 16:24:05 UTC (19:25:39 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
macos_11-clang_13.0 / x86_64-apple-darwin20.5.0 |
timestamp |
2023-01-26 15:41:11 UTC (20:08:33 hours ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-clang_14.0_llvm_msvc_17.2-O2 / x86_64-microsoft-win32-msvc14.3 |
timestamp |
2023-01-24 23:17:26 UTC (02 12:32:18 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-clang_13.0_llvm_msvc_16.11_lld / x86_64-microsoft-win32-msvc14.2 |
timestamp |
2023-01-24 23:12:37 UTC (02 12:37:07 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-clang_14.0_llvm_msvc_17.2_lld / x86_64-microsoft-win32-msvc14.3 |
timestamp |
2023-01-24 23:02:26 UTC (02 12:47:18 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-gcc_11.2_mingw_w64 / x86_64-w64-mingw32 |
timestamp |
2023-01-24 22:52:19 UTC (02 12:57:25 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-clang_14.0_llvm_msvc_17.2-static_O2 / x86_64-microsoft-win32-msvc14.3 |
timestamp |
2023-01-24 22:37:28 UTC (02 13:12:16 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-clang_13.0_llvm_msvc_16.11-O2 / x86_64-microsoft-win32-msvc14.2 |
timestamp |
2023-01-24 22:36:39 UTC (02 13:13:05 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-clang_13.0_llvm_msvc_16.11-static_O2 / x86_64-microsoft-win32-msvc14.2 |
timestamp |
2023-01-24 22:21:12 UTC (02 13:28:32 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-clang_14.0_llvm_msvc_17.2 / x86_64-microsoft-win32-msvc14.3 |
timestamp |
2023-01-24 22:21:06 UTC (02 13:28:38 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-gcc_11.2_mingw_w64-O2 / x86_64-w64-mingw32 |
timestamp |
2023-01-24 22:16:23 UTC (02 13:33:22 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-clang_13.0_llvm_msvc_16.11 / x86_64-microsoft-win32-msvc14.2 |
timestamp |
2023-01-24 22:07:45 UTC (02 13:41:59 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-gcc_11.2_mingw_w64-static_O2 / x86_64-w64-mingw32 |
timestamp |
2023-01-24 22:00:30 UTC (02 13:49:14 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-msvc_17.2-O2 / x86_64-microsoft-win32-msvc14.3 |
timestamp |
2023-01-24 21:07:29 UTC (02 14:42:15 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-msvc_17.2-static_O2 / x86_64-microsoft-win32-msvc14.3 |
timestamp |
2023-01-24 20:54:34 UTC (02 14:55:10 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-msvc_16.11-O2 / x86_64-microsoft-win32-msvc14.2 |
timestamp |
2023-01-24 20:53:39 UTC (02 14:56:05 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-msvc_17.2 / x86_64-microsoft-win32-msvc14.3 |
timestamp |
2023-01-24 20:46:20 UTC (02 15:03:25 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-clang_14.0_libc++-O3 / x86_64-linux-gnu |
timestamp |
2023-01-24 20:32:10 UTC (02 15:17:34 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-clang_14.0_libc++-static_O3 / x86_64-linux-gnu |
timestamp |
2023-01-24 20:23:14 UTC (02 15:26:30 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-clang_14.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-24 14:07:13 UTC (02 21:42:31 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-clang_14.0-static_O3 / x86_64-linux-gnu |
timestamp |
2023-01-24 14:03:21 UTC (02 21:46:23 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-clang_14.0-O3 / x86_64-linux-gnu |
timestamp |
2023-01-24 14:03:03 UTC (02 21:46:41 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-clang_14.0 / x86_64-linux-gnu |
timestamp |
2023-01-24 14:02:24 UTC (02 21:47:20 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-msvc_16.11-static_O2 / x86_64-microsoft-win32-msvc14.2 |
timestamp |
2023-01-24 14:01:28 UTC (02 21:48:17 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10-msvc_16.11 / x86_64-microsoft-win32-msvc14.2 |
timestamp |
2023-01-24 13:59:28 UTC (02 21:50:17 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
windows_10_devmode-msvc_16.11 / x86_64-microsoft-win32-msvc14.2 |
timestamp |
2023-01-24 13:59:17 UTC (02 21:50:27 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-clang_13.0_libc++ / x86_64-linux-gnu |
timestamp |
2023-01-24 13:56:56 UTC (02 21:52:48 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-clang_13.0 / x86_64-linux-gnu |
timestamp |
2023-01-24 13:56:28 UTC (02 21:53:17 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-gcc_12.1-O3 / x86_64-linux-gnu |
timestamp |
2023-01-24 13:56:14 UTC (02 21:53:30 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
freebsd_13-clang_13.0-O3 / x86_64-freebsd13.1 |
timestamp |
2023-01-24 13:55:54 UTC (02 21:53:51 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
freebsd_13-clang_13.0-static_O3 / x86_64-freebsd13.1 |
timestamp |
2023-01-24 13:55:52 UTC (02 21:53:52 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
freebsd_13-clang_13.0 / x86_64-freebsd13.1 |
timestamp |
2023-01-24 13:55:12 UTC (02 21:54:32 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-gcc_12.1 / x86_64-linux-gnu |
timestamp |
2023-01-24 13:54:43 UTC (02 21:55:01 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
freebsd_12-clang_10.0 / x86_64-freebsd12.3 |
timestamp |
2023-01-24 13:53:31 UTC (02 21:56:13 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-gcc_11.3 / x86_64-linux-gnu |
timestamp |
2023-01-24 13:53:21 UTC (02 21:56:23 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_11-gcc_12.1-static_O3 / x86_64-linux-gnu |
timestamp |
2023-01-24 13:23:16 UTC (02 22:26:28 days ago) |
result |
success | log | rebuild |
toolchain |
public-0.15.0 |
config |
linux_debian_10-clang_9.0 / x86_64-linux-gnu |
timestamp |
2023-01-24 12:00:36 UTC (02 23:49:08 days ago) |
result |
success | log | rebuild |
Changes
Version 0.15.0
* Generated C/C++ headers and ad hoc sources are now updated during match.
Specifically, all headers as well as ad hoc headers and sources are now
treated by the cc::link_rule as if they had update=match unless explicit
update=execute is specified (see below on the update operation-specific
variable).
This change should be transparent to most projects. For background and
discussion of rare cases where you may wish to disable this, see:
https://github.com/build2/HOWTO/blob/master/entries/handle-auto-generated-headers.md
* Support for rule hints.
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.
In cc::link_rule we now support "linking" libraries without any sources or
headers with a hint. This can be useful for creating "metadata libraries"
whose only purpose is to convey metadata (options to use and/or libraries
to link).
* UTF-8 is now the default input/source character set for C/C++ compilation.
Specifically, the cc module now passes the appropriate compiler option
(/utf-8 for MSVC and -finput-charset=UTF-8 for GCC and Clang) unless a
custom value is already specified (with /{source,execution}-charset for
MSVC and -finput-charset for GCC and Clang).
This change may trigger new compilation errors in your source code if
it's not valid UTF-8 (such errors most commonly point into comments).
For various ways to fix this, see:
https://github.com/build2/HOWTO/blob/master/entries/convert-source-files-to-utf8.md
* Project configuration variables are now non-nullable by default.
A project configuration variable with the NULL default value is naturally
assumed nullable, for example:
config [string] config.libhello.fallback_name ?= [null]
Otherwise, to make a project configuration nullable use the `null`
variable attribute, for example:
config [string, null] config.libhello.fallback_name ?= "World"
* New $relative(<path>, <dir-path>) function.
* New $root_directory(<path>) function.
* New $size() function to get the size of string, path, dir_path.
* New $size() function to get the size of a sequence (strings, paths, etc).
* New $sort() function to sort a sequence (strings, paths, etc).
The function has the following signature:
$sort(<sequence> [, <flags>])
The following flag is supported by all the overloads:
dedup - in addition to sorting also remove duplicates
Additionally, the strings overload also support the following flag:
icase - sort ignoring case
Note that on case-insensitive filesystems the paths and dir_paths
overloads' order is case-insensitive.
* New $config.origin() function for querying configuration value origin.
Give a config.* variable name, this function returns one of `undefined`,
`default`, `buildfile`, or `override`.
* Recognition of -pthread as a special -l option in *.libs.
For background, see:
https://github.com/build2/HOWTO/blob/master/entries/link-pthread.md
* The bin.whole (whole archive) value is now saved in generated pkg-config
files.
* Ability to customize header and library search paths in generated
pkg-config files.
Specifically, {cc,c,cxx}.pkgconfig.{include,lib} variables specify header
(-I) and library (-L) search paths to use in the generated pkg-config
files instead of the default install.{include,lib}. Relative paths are
resolved as installation paths. For example:
lib{Qt6Core}: cxx.pkgconfig.include = include/qt6/
* Ability to save user metadata in C/C++ libraries, including in generated
pkg-config files.
For background and details, see:
https://github.com/build2/HOWTO/blob/master/entries/convey-additional-information-with-exe-lib.md
* Support for rule-specific search in immediate import.
We can now nominate a rule to perform the rule-specific search (if
required) using the rule_hint attribute. For example:
import! [metadata, rule_hint=cxx.link] lib = libhello%lib{hello}
* Support for dynamic dependencies in ad hoc recipes.
Specifically, the `depdb` builtin now has the new `dyndep` command that
can be used to extract dynamic dependencies from program output or a
file. For example, from program output:
obje{hello.o}: cxx{hello}
{{
s = $path($<[0])
o = $path($>)
poptions = $cxx.poptions $cc.poptions
coptions = $cc.coptions $cxx.coptions
depdb dyndep $poptions --what=header --default-type=h -- \
$cxx.path $poptions $coptions $cxx.mode -M -MG $s
diag c++ ($<[0])
$cxx.path $poptions $coptions $cxx.mode -o $o -c $s
}}
Or, alternatively, from a file:
t = $(o).t
depdb dyndep $poptions --what=header --default-type=h --file... More