build2/0.15.0

[full]

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
version 0.15.0
license MIT
repository https://pkg.cppget.org/1/alpha
download build2-0.15.0.tar.gz
sha256 392845900ed4477f09e8f9addf062d245c7f829cc49424a6354dd16ff84b661c
project build2
url build2.org
doc-url build2.org/doc.xhtml
src-url git.build2.org/cgit/build2/tree/
topics build systembuild toolchain

Depends (2)

libbutl ^0.15.0
libpkg-config ^0.1.0

Requires (1)

c++14

Builds

toolchain public-0.15.0
config windows_10-gcc_11.2_mingw_w64 / x86_64-w64-mingw32
timestamp 2022-08-18 20:41:39 UTC (02:45:34 hours 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 2022-08-18 20:41:09 UTC (02:46:04 hours 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 2022-08-18 20:38:42 UTC (02:48:31 hours 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 2022-08-18 20:37:22 UTC (02:49:51 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 2022-08-18 20:31:34 UTC (02:55:39 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config windows_10-gcc_11.2_mingw_w64-O2 / x86_64-w64-mingw32
timestamp 2022-08-18 20:27:03 UTC (03:00:10 hours 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 2022-08-18 20:26:37 UTC (03:00:37 hours 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 2022-08-18 20:26:17 UTC (03:00:57 hours 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 2022-08-18 20:20:34 UTC (03:06:39 hours 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 2022-08-18 20:19:58 UTC (03:07:15 hours 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 2022-08-18 20:19:27 UTC (03:07:46 hours 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 2022-08-18 19:27:55 UTC (03:59:19 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-clang_14.0_libc++-O3 / x86_64-linux-gnu
timestamp 2022-08-18 19:27:20 UTC (03:59:53 hours 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 2022-08-18 19:23:35 UTC (04:03:38 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-clang_14.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 19:21:35 UTC (04:05:39 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-clang_14.0-static_O3 / x86_64-linux-gnu
timestamp 2022-08-18 19:16:53 UTC (04:10:20 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config windows_10-msvc_17.2-O2 / x86_64-microsoft-win32-msvc14.3
timestamp 2022-08-18 19:15:59 UTC (04:11:14 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config windows_10-msvc_16.11-O2 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-08-18 19:13:54 UTC (04:13:19 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-clang_14.0-O3 / x86_64-linux-gnu
timestamp 2022-08-18 19:12:36 UTC (04:14:37 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-clang_14.0 / x86_64-linux-gnu
timestamp 2022-08-18 19:11:20 UTC (04:15:53 hours 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 2022-08-18 19:09:36 UTC (04:17:38 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config windows_10-msvc_17.2 / x86_64-microsoft-win32-msvc14.3
timestamp 2022-08-18 19:09:21 UTC (04:17:52 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config windows_10_devmode-msvc_16.11 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-08-18 18:57:26 UTC (04:29:47 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config windows_10-msvc_16.11 / x86_64-microsoft-win32-msvc14.2
timestamp 2022-08-18 18:56:14 UTC (04:31:00 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-gcc_12.1-O3 / x86_64-linux-gnu
timestamp 2022-08-18 18:41:44 UTC (04:45:29 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config freebsd_13-clang_13.0-static_O3 / x86_64-freebsd13.1
timestamp 2022-08-18 18:37:52 UTC (04:49:21 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-gcc_12.1-static_O3 / x86_64-linux-gnu
timestamp 2022-08-18 18:36:29 UTC (04:50:44 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config freebsd_13-clang_13.0-O3 / x86_64-freebsd13.1
timestamp 2022-08-18 18:32:55 UTC (04:54:18 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-gcc_12.1 / x86_64-linux-gnu
timestamp 2022-08-18 18:32:15 UTC (04:54:58 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config freebsd_13-clang_13.0 / x86_64-freebsd13.1
timestamp 2022-08-18 18:31:20 UTC (04:55:53 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-clang_13.0 / x86_64-linux-gnu
timestamp 2022-08-18 18:30:50 UTC (04:56:24 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-clang_13.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 18:30:47 UTC (04:56:26 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-gcc_11.3 / x86_64-linux-gnu
timestamp 2022-08-18 18:22:18 UTC (05:04:55 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config freebsd_12-clang_10.0 / x86_64-freebsd12.3
timestamp 2022-08-18 18:21:57 UTC (05:05:16 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_9-clang_8.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 12:12:24 UTC (11:14:49 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-clang_10.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 12:08:47 UTC (11:18:26 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_9-clang_8.0 / x86_64-linux-gnu
timestamp 2022-08-18 12:08:11 UTC (11:19:03 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_9-gcc_7.4 / x86_64-linux-gnu
timestamp 2022-08-18 12:07:34 UTC (11:19:40 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_9-clang_7.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 12:06:10 UTC (11:21:03 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-clang_12.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 12:01:35 UTC (11:25:38 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-gcc_10.2 / x86_64-linux-gnu
timestamp 2022-08-18 12:00:47 UTC (11:26:26 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-clang_9.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 12:00:25 UTC (11:26:48 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_9-clang_6.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 11:59:46 UTC (11:27:27 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-clang_11.0_libc++ / x86_64-linux-gnu
timestamp 2022-08-18 11:58:57 UTC (11:28:16 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_9-clang_7.0 / x86_64-linux-gnu
timestamp 2022-08-18 11:58:48 UTC (11:28:25 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_9-clang_6.0 / x86_64-linux-gnu
timestamp 2022-08-18 11:52:55 UTC (11:34:18 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-clang_9.0 / x86_64-linux-gnu
timestamp 2022-08-18 11:52:04 UTC (11:35:10 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-clang_12.0 / x86_64-linux-gnu
timestamp 2022-08-18 11:50:58 UTC (11:36:15 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-clang_10.0 / x86_64-linux-gnu
timestamp 2022-08-18 11:50:48 UTC (11:36:26 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-clang_11.0 / x86_64-linux-gnu
timestamp 2022-08-18 11:50:13 UTC (11:37:01 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_9-gcc_8.4 / x86_64-linux-gnu
timestamp 2022-08-18 11:46:29 UTC (11:40:45 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config freebsd_11-clang_10.0 / x86_64-freebsd11.4
timestamp 2022-08-18 11:44:51 UTC (11:42:23 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 2022-08-18 11:38:59 UTC (11:48:15 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_10-gcc_9.3 / x86_64-linux-gnu
timestamp 2022-08-18 11:38:44 UTC (11:48:29 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config windows_10-msvc_14.3 / x86_64-microsoft-win32-msvc14.0
timestamp 2022-08-18 11:30:38 UTC (11:56:36 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config linux_debian_11-gcc_12.1-ndebug_O3 / x86_64-linux-gnu
timestamp 2022-08-18 11:29:09 UTC (11:58:04 hours ago)
result warning (update) | log | rebuild
toolchain public-0.15.0
config linux_debian_8-gcc_4.9 / x86_64-linux-gnu
timestamp 2022-08-18 11:21:50 UTC (12:05:23 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config windows_10-msvc_15.9 / x86_64-microsoft-win32-msvc14.1
timestamp 2022-08-18 11:13:27 UTC (12:13:46 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 2022-08-18 04:41:10 UTC (18:46:03 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 2022-08-18 04:36:16 UTC (18:50:57 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 2022-08-18 04:35:55 UTC (18:51:18 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 2022-08-18 04:35:02 UTC (18:52:11 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 2022-08-18 04:34:40 UTC (18:52:34 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config macos_12-clang_13.1 / x86_64-apple-darwin21.6.0
timestamp 2022-08-18 04:33:46 UTC (18:53:27 hours ago)
result success | log | rebuild
toolchain public-0.15.0
config macos_11-clang_13.0 / x86_64-apple-darwin20.5.0
timestamp 2022-08-18 04:32:30 UTC (18:54:43 hours 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