Skip to content

v0.0.94

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Jul 14:55
e243856

修复

  • 依赖包被激活 feature 的 sourcesmcpp test 下不编译prepare_build()
    把 feature 源集解析(drop + add)整段门在 !includeDevDeps,而 mcpp test
    includeDevDeps = true → 激活 feature 的 sources 从不被加回构建图。
    descriptor 若把某个 glob 写在 features 下(xpkg 的 features.X.sources
    只落进 featureSources、从不进 base sources),该包在 mcpp build 下正常、
    mcpp test 下必然链接失败(undefined reference)。
    • 命中面:compat.cjsonutils(cJSONUtils_*)、compat.eigen
      eigen_blas(dgemm_)、compat.spdlogcompiled
    • eigen_blasdgemm_ 一直被记为「把 feature 编出的依赖目标链进 test
      二进制是 follow-up」——定性是错的
      :不是链接问题,是源集解析问题。
    • 修复:drop 仍只在 build 模式做(mcpp test 需要保留完整源面,让 dev-dep
      轨的 per-test main 检测看得见 gtest_main.cc 并逐 test 剪枝——见
      tests/e2e/79_gtest_regular_dep_feature_main.sh);add 改为两模式都做,
      去重,使 gtest 那种 base/feature 双列的 glob 不会进两次。
    • 回归测试:tests/e2e/100_feature_sources_test_mode.sh(cjson utils
      mcpp test 下必须编译并链接;mcpp build 仍正常;不请求 feature 时 gated
      源仍被排除)。