]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake/boost: load context Jamfile before passing context-impl to b2 69611/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Sat, 20 Jun 2026 02:53:51 +0000 (10:53 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Sat, 20 Jun 2026 07:41:11 +0000 (15:41 +0800)
commit5d82294f3f5b6204f2fe601f1e2349d806854d9e
tree4c77688a86afcf3d8d839677cf370b74d8ed7236
parente42e43a18be1296c81f38125af66a2f131f207f8
cmake/boost: load context Jamfile before passing context-impl to b2

With WITH_ASAN, b2 runs as `b2 context-impl=ucontext headers stage` for the
build step and `b2 context-impl=ucontext install` for the install step. The
`context-impl` feature is declared in libs/context/build/Jamfile.v2, which
neither the headers/stage nor the install targets load, so b2 aborts with:

    error: unknown feature "<context-impl>"

Name the context project as a target in both commands so its Jamfile (and the
feature) loads before the build request is expanded.

This works around https://github.com/boostorg/context/issues/297, fixed
upstream in
https://github.com/boostorg/context/commit/12ac945158ae3c2373ec0c888899373218aa209f
and first released in Boost 1.88; drop it once the bundled Boost is bumped to
1.88 or newer.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
cmake/modules/BuildBoost.cmake